Skip to content

Commit 6584e8a

Browse files
authored
Add --remap-path-prefix=$PWD to make dbg builds more reproducible. (#139)
1 parent d58e505 commit 6584e8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/private/rustc.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ def rustc_compile_action(
225225
"--codegen ar=%s" % ar,
226226
"--codegen linker=%s" % cc,
227227
"--codegen link-args='%s'" % " ".join(cpp_fragment.link_options),
228+
"--remap-path-prefix {}={}".format("$(pwd)", "__bazel_redacted_pwd"),
228229
"--out-dir",
229230
output_dir,
230231
"--emit=dep-info,link",

0 commit comments

Comments
 (0)