Skip to content

Commit

Permalink
Determinism fix (#565)
Browse files Browse the repository at this point in the history
This was left out by mistake during an earlier refactor.
  • Loading branch information
Jalal El Mansouri committed Jan 30, 2021
1 parent baa28db commit bf28c9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rust/private/rustc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,9 @@ def construct_arguments(
args.add("--codegen=opt-level=" + compilation_mode.opt_level)
args.add("--codegen=debuginfo=" + compilation_mode.debug_info)

# For determinism to help with build distribution and such
args.add("--remap-path-prefix=${pwd}=.")

args.add("--emit=" + ",".join(emit))
args.add("--color=always")
args.add("--target=" + toolchain.target_triple)
Expand Down

0 comments on commit bf28c9f

Please sign in to comment.