Implement buck genrule using -o instead of redirection

This commit is contained in:
David Tolnay 2020-09-27 17:41:08 -04:00
parent 61dbb45c48
commit d1ca05aa1c
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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",
)