Update comment to mention where the __FILE__ macro is used.

This commit is contained in:
Joel Galenson 2019-08-19 15:12:07 -07:00
parent ca423fe49a
commit c8f7928916
1 changed files with 2 additions and 1 deletions

View File

@ -424,7 +424,8 @@ mod c {
}
// Support deterministic builds by remapping the __FILE__ prefix if the
// compiler supports it.
// compiler supports it. This fixes the nondeterminism caused by the
// use of that macro in lib/builtins/int_util.h in compiler-rt.
cfg.flag_if_supported(&format!("-ffile-prefix-map={}=.", root.display()));
let src_dir = root.join("lib/builtins");