Skip to content

Commit bd03515

Browse files
charles-zablitgithub-actions[bot]
authored andcommitted
Automerge: [lldb][windows] fix undeclared identifier error (#162705)
This patch fixes the `'LLDB_PYTHON_DLL_RELATIVE_PATH': undeclared identifier` error introduced by llvm/llvm-project#162509.
2 parents 5a3c50a + d2413d9 commit bd03515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/tools/driver/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ SBError Driver::ProcessArgs(const opt::InputArgList &args, bool &exiting) {
433433
return error;
434434
}
435435

436-
#ifdef _WIN32
436+
#if defined(_WIN32) && defined(LLDB_PYTHON_DLL_RELATIVE_PATH)
437437
/// Returns the full path to the lldb.exe executable.
438438
inline std::wstring GetPathToExecutableW() {
439439
// Iterate until we reach the Windows API maximum path length (32,767).

0 commit comments

Comments
 (0)