Skip to content

Commit d2413d9

Browse files
[lldb][windows] fix undeclared identifier error (#162705)
This patch fixes the `'LLDB_PYTHON_DLL_RELATIVE_PATH': undeclared identifier` error introduced by #162509.
1 parent 5cef6f3 commit d2413d9

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)