Wrap run_binary args

This commit is contained in:
David Tolnay 2020-09-25 20:26:25 -04:00
parent 5a3ddf1f0e
commit 73d129dfd9
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -11,7 +11,12 @@ def rust_cxx_bridge(
name = "%s/header" % name,
srcs = [src],
outs = [src + ".h"],
args = ["$(location %s)" % src, "-o", "$(location %s.h)" % src, "--header"],
args = [
"$(location %s)" % src,
"-o",
"$(location %s.h)" % src,
"--header",
],
tool = "//:codegen",
)
@ -19,7 +24,11 @@ def rust_cxx_bridge(
name = "%s/source" % name,
srcs = [src],
outs = [src + ".cc"],
args = ["$(location %s)" % src, "-o", "$(location %s.cc)" % src],
args = [
"$(location %s)" % src,
"-o",
"$(location %s.cc)" % src,
],
tool = "//:codegen",
)