Skip to content

Commit

Permalink
Unrolled build for rust-lang#127953
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rust-timer authored Jul 19, 2024
2 parents 8c3a94a + ec805d1 commit 5606ade
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ fn get_lib_name(lib: &str, aux_type: AuxType) -> Option<String> {
format!("{}.dll", lib)
} else if cfg!(target_vendor = "apple") {
format!("lib{}.dylib", lib)
} else if cfg!(target_os = "aix") {
format!("lib{}.a", lib)
} else {
format!("lib{}.so", lib)
}),
Expand Down

0 comments on commit 5606ade

Please sign in to comment.