Skip to content

Commit 25ea0e9

Browse files
authored
[lldb] Make use of LD_LIBRARY_PATH on OpenBSD (#74017)
1 parent c3f0932 commit 25ea0e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lldb/packages/Python/lldbsuite/test/lldbplatformutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def __init__(
175175
def createPlatformContext():
176176
if platformIsDarwin():
177177
return _PlatformContext("DYLD_LIBRARY_PATH", ":", "lib", "dylib")
178-
elif getPlatform() in ("freebsd", "linux", "netbsd"):
178+
elif getPlatform() in ("linux", "freebsd", "netbsd", "openbsd"):
179179
return _PlatformContext("LD_LIBRARY_PATH", ":", "lib", "so")
180180
else:
181181
return _PlatformContext("PATH", ";", "", "dll")

lldb/test/API/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def find_sanitizer_runtime(name):
4545

4646

4747
def find_shlibpath_var():
48-
if platform.system() in ["Linux", "FreeBSD", "NetBSD", "SunOS"]:
48+
if platform.system() in ["Linux", "FreeBSD", "NetBSD", "OpenBSD", "SunOS"]:
4949
yield "LD_LIBRARY_PATH"
5050
elif platform.system() == "Darwin":
5151
yield "DYLD_LIBRARY_PATH"

0 commit comments

Comments
 (0)