about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-06-15 17:14:49 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-06-15 17:14:49 +0000
commite9bd63af3cfc192f0f998debbf5ab3e597781cec (patch)
tree5bc67aff79b182c57f006bdbe45e132e87f1ff2e
parent485d7e129f5beb67e7769014959e07aff5989d22 (diff)
downloadrust-e9bd63af3cfc192f0f998debbf5ab3e597781cec.tar.gz
rust-e9bd63af3cfc192f0f998debbf5ab3e597781cec.zip
Ignore -Clink-arg=-import-instr-limit
-rw-r--r--src/config.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 263401e1c4b..9e92d656c76 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -82,6 +82,11 @@ impl BackendConfig {
 
         let mut config = BackendConfig::default();
         for opt in opts {
+            if opt.starts_with("-import-instr-limit") {
+                // Silently ignore -import-instr-limit. It is set by rust's build system even when
+                // testing cg_clif.
+                continue;
+            }
             if let Some((name, value)) = opt.split_once('=') {
                 match name {
                     "mode" => config.codegen_mode = value.parse()?,