[AIX] Handle AIX dynamic library extensions within c-link-to-rust-dylib run-make test

Dynamic libraries on AIX have the ".a" extension. The c-link-to-rust-dylib
run-make test checks for the extension explicitly, so the extension for AIX
is also added to accommodate the test case on AIX.
This commit is contained in:
Amy Kwan
2025-04-22 22:55:19 -04:00
parent 1a5bf12f65
commit fdf2c47f83
+5 -1
View File
@@ -23,7 +23,11 @@ fn main() {
if path.is_file()
&& path.extension().is_some_and(|ext| ext == expected_extension)
&& path.file_name().and_then(|name| name.to_str()).is_some_and(|name| {
name.ends_with(".so") || name.ends_with(".dll") || name.ends_with(".dylib")
if cfg!(target_os = "aix") {
name.ends_with(".a")
} else {
name.ends_with(".so") || name.ends_with(".dll") || name.ends_with(".dylib")
}
})
{
rfs::remove_file(path);