1
Fork 0

Rollup merge of #127953 - bzEq:aix-compiletest-dylib-suffix, r=jieyouxu

[compiletest] Search *.a when getting dynamic libraries on AIX

AIX uses `.a` as dylib suffix. Support it in compiletest.
This commit is contained in:
Trevor Gross 2024-07-19 03:27:50 -05:00 committed by GitHub
commit 314cf1fc7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -94,6 +94,8 @@ fn get_lib_name(lib: &str, aux_type: AuxType) -> Option<String> {
format!("{}.dll", lib) format!("{}.dll", lib)
} else if cfg!(target_vendor = "apple") { } else if cfg!(target_vendor = "apple") {
format!("lib{}.dylib", lib) format!("lib{}.dylib", lib)
} else if cfg!(target_os = "aix") {
format!("lib{}.a", lib)
} else { } else {
format!("lib{}.so", lib) format!("lib{}.so", lib)
}), }),