From 2980f4c29b335228bfa8313926f35fd248cc7829 Mon Sep 17 00:00:00 2001 From: David Peixotto Date: Wed, 27 Aug 2025 09:21:49 -0700 Subject: [PATCH] Allow passing LD_EXTRAS environment variable down to dotest.py This is to workaround a dynamic linker bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33224 We can run tests that use a working ld.so like this: ``` $ DOTEST_LD_EXTRAS=-Wl,--dynamic-linker= llvm-lit ``` --- lldb/test/API/lldbtest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lldb/test/API/lldbtest.py b/lldb/test/API/lldbtest.py index d6b79ebc2c434..68d48dabcb93b 100644 --- a/lldb/test/API/lldbtest.py +++ b/lldb/test/API/lldbtest.py @@ -59,6 +59,9 @@ def execute(self, test, litConfig): cmd.extend(["--env", "LUA_EXECUTABLE=%s" % test.config.lua_executable]) cmd.extend(["--env", "LLDB_LUA_CPATH=%s" % test.config.lldb_lua_cpath]) + if "DOTEST_LD_EXTRAS" in os.environ: + cmd.extend(["--env", "LD_EXTRAS=%s" % os.environ["DOTEST_LD_EXTRAS"]]) + timeoutInfo = None try: out, err, exitCode = lit.util.executeCommand(