mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-12-13 09:57:05 +00:00
Implement buck genrule using -o instead of redirection
This commit is contained in:
parent
61dbb45c48
commit
d1ca05aa1c
@ -5,7 +5,7 @@ def rust_cxx_bridge(name, src, deps = []):
|
||||
name = "%s/header" % name,
|
||||
srcs = [src],
|
||||
out = src + ".h",
|
||||
cmd = "$(exe //:codegen) --header ${SRCS} > ${OUT}",
|
||||
cmd = "$(exe //:codegen) ${SRCS} -o ${OUT}",
|
||||
type = "cxxbridge",
|
||||
)
|
||||
|
||||
@ -13,7 +13,7 @@ def rust_cxx_bridge(name, src, deps = []):
|
||||
name = "%s/source" % name,
|
||||
srcs = [src],
|
||||
out = src + ".cc",
|
||||
cmd = "$(exe //:codegen) ${SRCS} > ${OUT}",
|
||||
cmd = "$(exe //:codegen) ${SRCS} -o ${OUT}",
|
||||
type = "cxxbridge",
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user