[Lldb-commits] [lldb] [lldb][windows] fix undeclared identifier error (PR #162705)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 9 10:30:14 PDT 2025
https://github.com/charles-zablit created https://github.com/llvm/llvm-project/pull/162705
This patch fixes the `'LLDB_PYTHON_DLL_RELATIVE_PATH': undeclared identifier` error introduced by https://github.com/llvm/llvm-project/pull/162509.
>From 74e30d92d2c5c2bf4a6c7add62f72ef34581a81b Mon Sep 17 00:00:00 2001
From: Charles Zablit <c_zablit at apple.com>
Date: Thu, 9 Oct 2025 18:28:17 +0100
Subject: [PATCH] [lldb][windows] fix undeclared identifier error
---
lldb/tools/driver/Driver.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp
index 325533c85e172..ba0041111045b 100644
--- a/lldb/tools/driver/Driver.cpp
+++ b/lldb/tools/driver/Driver.cpp
@@ -433,7 +433,7 @@ SBError Driver::ProcessArgs(const opt::InputArgList &args, bool &exiting) {
return error;
}
-#ifdef _WIN32
+#if defined(_WIN32) && defined(LLDB_PYTHON_DLL_RELATIVE_PATH)
/// Returns the full path to the lldb.exe executable.
inline std::wstring GetPathToExecutableW() {
// Iterate until we reach the Windows API maximum path length (32,767).
More information about the lldb-commits
mailing list