Skip to content

Conversation

charles-zablit
Copy link
Contributor

This patch fixes the 'LLDB_PYTHON_DLL_RELATIVE_PATH': undeclared identifier error introduced by #162509.

@llvmbot
Copy link
Member

llvmbot commented Oct 9, 2025

@llvm/pr-subscribers-lldb

Author: Charles Zablit (charles-zablit)

Changes

This patch fixes the 'LLDB_PYTHON_DLL_RELATIVE_PATH': undeclared identifier error introduced by #162509.


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

1 Files Affected:

  • (modified) lldb/tools/driver/Driver.cpp (+1-1)
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).

Copy link
Member

@dzhidzhoev dzhidzhoev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@charles-zablit charles-zablit merged commit d2413d9 into llvm:main Oct 9, 2025
11 checks passed
svkeerthy pushed a commit that referenced this pull request Oct 9, 2025
This patch fixes the `'LLDB_PYTHON_DLL_RELATIVE_PATH': undeclared
identifier` error introduced by
#162509.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants