summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Smith <brad@comstyle.com>2023-12-01 16:06:22 -0500
committerGitHub <noreply@github.com>2023-12-01 16:06:22 -0500
commit25ea0e9d9a262d228b1c43ac1906017822dcc365 (patch)
tree4bba2e75e2eb8b1909854212cd1a97d479b485ee
parentc3f0932c189e4c11f82a3f8d73d2002e0aa6dab6 (diff)
[lldb] Make use of LD_LIBRARY_PATH on OpenBSD (#74017)
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbplatformutil.py2
-rw-r--r--lldb/test/API/lit.cfg.py2
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"