Support deterministic builds by remapping the __FILE__ prefix if the compiler supports it.
This commit is contained in:
parent
8b76d44636
commit
cefd832d89
1 changed files with 4 additions and 0 deletions
|
|
@ -423,6 +423,10 @@ mod c {
|
|||
panic!("RUST_COMPILER_RT_ROOT={} does not exist", root.display());
|
||||
}
|
||||
|
||||
// Support deterministic builds by remapping the __FILE__ prefix if the
|
||||
// compiler supports it.
|
||||
cfg.flag_if_supported(&format!("-ffile-prefix-map={}=.", root.display()));
|
||||
|
||||
let src_dir = root.join("lib/builtins");
|
||||
for (sym, src) in sources.map.iter() {
|
||||
let src = src_dir.join(src);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue