-
Notifications
You must be signed in to change notification settings - Fork 14.2k
[AIX] use LIBPATH on AIX instead of LD_LIBRARY_PATH #94602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-testing-tools Author: Chen Zheng (chenzheng1030) ChangesLD_LIBRARY_PATH will becomes invalid when LIBPATH is also set on AIX. See below example on AIX:
This breaks many AIX LIT cases on our downstream buildbots which sets LIBPATH. Full diff: https://github.com/llvm/llvm-project/pull/94602.diff 1 Files Affected:
diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py
index 1d4babc99984b..8d5da6b4f9dc0 100644
--- a/llvm/utils/lit/lit/llvm/config.py
+++ b/llvm/utils/lit/lit/llvm/config.py
@@ -588,7 +588,10 @@ def use_clang(
if getattr(self.config, pp, None)
]
- self.with_environment("LD_LIBRARY_PATH", lib_paths, append_path=True)
+ if sys.platform.startswith("aix"):
+ self.with_environment("LIBPATH", lib_paths, append_path=True)
+ else:
+ self.with_environment("LD_LIBRARY_PATH", lib_paths, append_path=True)
shl = getattr(self.config, "llvm_shlib_dir", None)
pext = getattr(self.config, "llvm_plugin_ext", None)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a minor suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as well with the minor adjustment proposed
Co-authored-by: David Tenty <[email protected]>
LD_LIBRARY_PATH will become invalid when LIBPATH is also set on AIX.
See below example on AIX:
This breaks many AIX LIT cases on our downstream buildbots which sets LIBPATH.