[Lldb-commits] [lldb] d2413d9 - [lldb][windows] fix undeclared identifier error (#162705)

via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 9 11:15:43 PDT 2025


Author: Charles Zablit
Date: 2025-10-09T19:15:38+01:00
New Revision: d2413d973c8de07427bc87b93cf106c6ff9073e8

URL: https://github.com/llvm/llvm-project/commit/d2413d973c8de07427bc87b93cf106c6ff9073e8
DIFF: https://github.com/llvm/llvm-project/commit/d2413d973c8de07427bc87b93cf106c6ff9073e8.diff

LOG: [lldb][windows] fix undeclared identifier error (#162705)

This patch fixes the `'LLDB_PYTHON_DLL_RELATIVE_PATH': undeclared
identifier` error introduced by
https://github.com/llvm/llvm-project/pull/162509.

Added: 
    

Modified: 
    lldb/tools/driver/Driver.cpp

Removed: 
    


################################################################################
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