diff options
author | Brad Smith <brad@comstyle.com> | 2023-12-01 16:06:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 16:06:22 -0500 |
commit | 25ea0e9d9a262d228b1c43ac1906017822dcc365 (patch) | |
tree | 4bba2e75e2eb8b1909854212cd1a97d479b485ee | |
parent | c3f0932c189e4c11f82a3f8d73d2002e0aa6dab6 (diff) |
[lldb] Make use of LD_LIBRARY_PATH on OpenBSD (#74017)
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbplatformutil.py | 2 | ||||
-rw-r--r-- | lldb/test/API/lit.cfg.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbplatformutil.py b/lldb/packages/Python/lldbsuite/test/lldbplatformutil.py index 37d06f7e88f9..bd92d03e0e22 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbplatformutil.py +++ b/lldb/packages/Python/lldbsuite/test/lldbplatformutil.py @@ -175,7 +175,7 @@ class _PlatformContext(object): def createPlatformContext(): if platformIsDarwin(): return _PlatformContext("DYLD_LIBRARY_PATH", ":", "lib", "dylib") - elif getPlatform() in ("freebsd", "linux", "netbsd"): + elif getPlatform() in ("linux", "freebsd", "netbsd", "openbsd"): return _PlatformContext("LD_LIBRARY_PATH", ":", "lib", "so") else: return _PlatformContext("PATH", ";", "", "dll") diff --git a/lldb/test/API/lit.cfg.py b/lldb/test/API/lit.cfg.py index 8b35e8b2a217..12675edc0fd3 100644 --- a/lldb/test/API/lit.cfg.py +++ b/lldb/test/API/lit.cfg.py @@ -45,7 +45,7 @@ def find_sanitizer_runtime(name): def find_shlibpath_var(): - if platform.system() in ["Linux", "FreeBSD", "NetBSD", "SunOS"]: + if platform.system() in ["Linux", "FreeBSD", "NetBSD", "OpenBSD", "SunOS"]: yield "LD_LIBRARY_PATH" elif platform.system() == "Darwin": yield "DYLD_LIBRARY_PATH" |