Skip to content

Commit e9bd63a

Browse files
committed
Ignore -Clink-arg=-import-instr-limit
1 parent 485d7e1 commit e9bd63a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/config.rs

+5
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ impl BackendConfig {
8282

8383
let mut config = BackendConfig::default();
8484
for opt in opts {
85+
if opt.starts_with("-import-instr-limit") {
86+
// Silently ignore -import-instr-limit. It is set by rust's build system even when
87+
// testing cg_clif.
88+
continue;
89+
}
8590
if let Some((name, value)) = opt.split_once('=') {
8691
match name {
8792
"mode" => config.codegen_mode = value.parse()?,

0 commit comments

Comments
 (0)