diff options
| author | Amy Kwan <amy.kwan1@ibm.com> | 2025-04-22 22:55:19 -0400 |
|---|---|---|
| committer | Amy Kwan <amy.kwan1@ibm.com> | 2025-04-22 22:55:19 -0400 |
| commit | fdf2c47f83fd4eead8b4d39a8a712bf7d5e68fc6 (patch) | |
| tree | 0577c7157e27a80268e615370c924a9f5cd3ccaf | |
| parent | 1a5bf12f6586d724ed5ff40e58e06c0233560c0e (diff) | |
| download | rust-fdf2c47f83fd4eead8b4d39a8a712bf7d5e68fc6.tar.gz rust-fdf2c47f83fd4eead8b4d39a8a712bf7d5e68fc6.zip | |
[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.
| -rw-r--r-- | tests/run-make/c-link-to-rust-dylib/rmake.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/run-make/c-link-to-rust-dylib/rmake.rs b/tests/run-make/c-link-to-rust-dylib/rmake.rs index ab9aa445402..3a48af8a366 100644 --- a/tests/run-make/c-link-to-rust-dylib/rmake.rs +++ b/tests/run-make/c-link-to-rust-dylib/rmake.rs @@ -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); |
