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:
commit
314cf1fc7a
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue