File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ channel = "auto-detect"
2424download-rustc = false
2525# Build the llvm-bitcode-linker
2626llvm-bitcode-linker = true
27+ # Required to make builds reproducible.
28+ remap-debuginfo = true
2729
2830[dist ]
2931# Use better compression when preparing tarballs.
Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ if [ "$DEPLOY$DEPLOY_ALT" = "1" ]; then
116116 else
117117 RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --enable-llvm-static-stdcpp"
118118 fi
119- RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set rust.remap-debuginfo"
120119
121120 if [ " $DEPLOY_ALT " != " " ] && isLinux; then
122121 RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --debuginfo-level=2"
@@ -139,6 +138,8 @@ if [ "$DEPLOY$DEPLOY_ALT" = "1" ]; then
139138 RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --enable-debug-assertions"
140139 fi
141140else
141+ RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set rust.remap-debuginfo=false"
142+
142143 # We almost always want debug assertions enabled, but sometimes this takes too
143144 # long for too little benefit, so we just turn them off.
144145 if [ " $NO_DEBUG_ASSERTIONS " = " " ]; then
You can’t perform that action at this time.
0 commit comments