We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36da64f commit ca423feCopy full SHA for ca423fe
build.rs
@@ -423,6 +423,10 @@ mod c {
423
panic!("RUST_COMPILER_RT_ROOT={} does not exist", root.display());
424
}
425
426
+ // Support deterministic builds by remapping the __FILE__ prefix if the
427
+ // compiler supports it.
428
+ cfg.flag_if_supported(&format!("-ffile-prefix-map={}=.", root.display()));
429
+
430
let src_dir = root.join("lib/builtins");
431
for (sym, src) in sources.map.iter() {
432
let src = src_dir.join(src);
0 commit comments