File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
tools/SourceKit/tools/sourcekitd/bin/InProc Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 15
15
#include " SourceKit/Support/Concurrency.h"
16
16
#include " SourceKit/Support/UIdent.h"
17
17
18
+ #include " llvm/ADT/SmallString.h"
18
19
#include " llvm/Support/Mutex.h"
19
20
#include " llvm/Support/Path.h"
20
21
@@ -82,14 +83,17 @@ UIdent sourcekitd::UIdentFromSKDUID(sourcekitd_uid_t uid) {
82
83
std::string sourcekitd::getRuntimeLibPath () {
83
84
#if defined(_WIN32)
84
85
MEMORY_BASIC_INFORMATION mbi;
86
+ llvm::SmallString<128 > libPath;
85
87
char path[MAX_PATH + 1 ];
86
88
if (!VirtualQuery (static_cast <void *>(sourcekitd_initialize), &mbi,
87
89
sizeof (mbi)))
88
90
llvm_unreachable (" call to VirtualQuery failed" );
89
91
if (!GetModuleFileNameA (static_cast <HINSTANCE>(mbi.AllocationBase ), path,
90
92
MAX_PATH))
91
93
llvm_unreachable (" call to GetModuleFileNameA failed" );
92
- return llvm::sys::path::parent_path (path);
94
+ libPath = llvm::sys::path::parent_path (llvm::sys::path::parent_path (path));
95
+ llvm::sys::path::append (libPath, " lib" );
96
+ return libPath.str ();
93
97
#else
94
98
// This silly cast below avoids a C++ warning.
95
99
Dl_info info;
You can’t perform that action at this time.
0 commit comments