Skip to content

Commit

Permalink
Rollup merge of #127953 - bzEq:aix-compiletest-dylib-suffix, r=jieyouxu
Browse files Browse the repository at this point in the history
[compiletest] Search *.a when getting dynamic libraries on AIX

AIX uses `.a` as dylib suffix. Support it in compiletest.
  • Loading branch information
tgross35 authored Jul 19, 2024
2 parents 6bdf9bd + ec805d1 commit 314cf1f
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 314cf1f

Please sign in to comment.