Skip to content

Commit 2f7a6f1

Browse files
fixup! [lldb][windows] add support for out of PATH python.dll resolution
1 parent 37cf46e commit 2f7a6f1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lldb/tools/driver/Driver.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@
3030
#include "llvm/Support/InitLLVM.h"
3131
#include "llvm/Support/Path.h"
3232
#include "llvm/Support/Signals.h"
33-
#include "llvm/Support/Windows/WindowsSupport.h"
3433
#include "llvm/Support/WithColor.h"
3534
#include "llvm/Support/raw_ostream.h"
3635

36+
#if _WIN32
37+
#include "llvm/Support/Windows/WindowsSupport.h"
38+
#endif
39+
3740
#include <algorithm>
3841
#include <atomic>
3942
#include <bitset>
@@ -773,7 +776,7 @@ int main(int argc, char const *argv[]) {
773776
"~/Library/Logs/DiagnosticReports/.\n");
774777
#endif
775778

776-
#ifdef _WIN32
779+
#if defined(_WIN32) && defined(LLDB_PYTHON_DLL_RELATIVE_PATH)
777780
AddPythonDLLToSearchPath();
778781
#endif
779782

0 commit comments

Comments
 (0)