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

via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 9 10:30:54 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Charles Zablit (charles-zablit)

<details>
<summary>Changes</summary>

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

---
Full diff: https://github.com/llvm/llvm-project/pull/162705.diff


1 Files Affected:

- (modified) lldb/tools/driver/Driver.cpp (+1-1) 


``````````diff
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).

``````````

</details>


https://github.com/llvm/llvm-project/pull/162705


More information about the lldb-commits mailing list