Pass tune-cpu to LLVM

I think this is how it should work...
This commit is contained in:
Mingye Wang 2020-09-17 17:39:26 +08:00 committed by Mingye Wang
parent 285fc7d704
commit a35a93f09c
9 changed files with 80 additions and 8 deletions

View file

@ -1079,6 +1079,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
"show extended diagnostic help (default: no)"),
terminal_width: Option<usize> = (None, parse_opt_uint, [UNTRACKED],
"set the current terminal width"),
tune_cpu: Option<String> = (None, parse_opt_string, [TRACKED],
"select processor to schedule for (`rustc --print target-cpus` for details)"),
thinlto: Option<bool> = (None, parse_opt_bool, [TRACKED],
"enable ThinLTO when possible"),
// We default to 1 here since we want to behave like