about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-10-13 02:49:00 +0000
committerbors <bors@rust-lang.org>2020-10-13 02:49:00 +0000
commitf54072bb815e2bbaec40eed18c7618904a184470 (patch)
treec8ef9069de929a2e7c2fd3a93363890bf5739cc6 /compiler/rustc_interface/src
parentafb4514c099fde6e3102373602bea9e6dacd4f88 (diff)
parenta35a93f09cc111a53d00efc567ad678583dd5ac7 (diff)
downloadrust-f54072bb815e2bbaec40eed18c7618904a184470.tar.gz
rust-f54072bb815e2bbaec40eed18c7618904a184470.zip
Auto merge of #76830 - Artoria2e5:tune, r=nagisa
Pass tune-cpu to LLVM

I think this is how it should work...

See https://internals.rust-lang.org/t/expose-tune-cpu-from-llvm/13088 for the background. Or the documentation diff.
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index 07ce9d0cd94..6553d0ecfdb 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -585,6 +585,7 @@ fn test_debugging_options_tracking_hash() {
     tracked!(symbol_mangling_version, SymbolManglingVersion::V0);
     tracked!(teach, true);
     tracked!(thinlto, Some(true));
+    tracked!(tune_cpu, Some(String::from("abc")));
     tracked!(tls_model, Some(TlsModel::GeneralDynamic));
     tracked!(treat_err_as_bug, Some(1));
     tracked!(unleash_the_miri_inside_of_you, true);