about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-04-03 08:58:52 +0200
committerGitHub <noreply@github.com>2023-04-03 08:58:52 +0200
commit7192ef3efd7b353f3e7207dbf286362bc637c43e (patch)
tree689912317b2f72c9c5c57b525d9716b1c7ee1be5 /src/tools
parent33289132ecc1805250f63801fded10fceb2300d8 (diff)
parentd3cc2f76465b854129daa4dca2a10b137a8699bf (diff)
downloadrust-7192ef3efd7b353f3e7207dbf286362bc637c43e.tar.gz
rust-7192ef3efd7b353f3e7207dbf286362bc637c43e.zip
Rollup merge of #109526 - bzEq:aix-libpath, r=Mark-Simulacrum
LIBPATH is used as dylib's path environment variable on AIX

See https://4js.com/online_documentation/fjs-fgl-3.00.05-manual-html/c_fgl_installation_017.html.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/compiletest/src/util.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/util.rs b/src/tools/compiletest/src/util.rs
index 5f6a27e5366..748240cc94b 100644
--- a/src/tools/compiletest/src/util.rs
+++ b/src/tools/compiletest/src/util.rs
@@ -156,6 +156,8 @@ pub fn dylib_env_var() -> &'static str {
         "DYLD_LIBRARY_PATH"
     } else if cfg!(target_os = "haiku") {
         "LIBRARY_PATH"
+    } else if cfg!(target_os = "aix") {
+        "LIBPATH"
     } else {
         "LD_LIBRARY_PATH"
     }