1
Fork 0

Add -Z simulate-remapped-rust-src-base option to simulate path virutalisation during bootstrapping

This commit is contained in:
Andy Wang 2021-05-01 12:28:45 +01:00
parent 5417b45c26
commit 0ac9ca4f88
No known key found for this signature in database
GPG key ID: 181B49F9F38F3374
4 changed files with 35 additions and 3 deletions

View file

@ -1161,6 +1161,9 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
"whether ELF relocations can be relaxed"),
relro_level: Option<RelroLevel> = (None, parse_relro_level, [TRACKED],
"choose which RELRO level to use"),
simulate_remapped_rust_src_base: Option<PathBuf> = (None, parse_opt_pathbuf, [TRACKED],
"simulate the effect of remap-debuginfo = true at bootstrapping by remapping path \
to rust's source base directory. only meant for testing purposes"),
report_delayed_bugs: bool = (false, parse_bool, [TRACKED],
"immediately print bugs registered with `delay_span_bug` (default: no)"),
sanitizer: SanitizerSet = (SanitizerSet::empty(), parse_sanitizers, [TRACKED],