Ignore -Clink-arg=-import-instr-limit

This commit is contained in:
bjorn3 2023-06-15 17:14:49 +00:00
parent 485d7e129f
commit e9bd63af3c

View File

@ -82,6 +82,11 @@ impl BackendConfig {
let mut config = BackendConfig::default(); let mut config = BackendConfig::default();
for opt in opts { 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('=') { if let Some((name, value)) = opt.split_once('=') {
match name { match name {
"mode" => config.codegen_mode = value.parse()?, "mode" => config.codegen_mode = value.parse()?,