Skip to content

Commit 314cf1f

Browse files
authored
Rollup merge of rust-lang#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.
2 parents 6bdf9bd + ec805d1 commit 314cf1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/compiletest/src/runtest.rs

+2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ fn get_lib_name(lib: &str, aux_type: AuxType) -> Option<String> {
9494
format!("{}.dll", lib)
9595
} else if cfg!(target_vendor = "apple") {
9696
format!("lib{}.dylib", lib)
97+
} else if cfg!(target_os = "aix") {
98+
format!("lib{}.a", lib)
9799
} else {
98100
format!("lib{}.so", lib)
99101
}),

0 commit comments

Comments
 (0)