File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
trunk/tools/SourceKit/tools/sourcekitd/bin/InProc Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 6d0b4a6e98a1a8feb5236016d3b24a018cac1cf2
2
+ refs/heads/master: e0dcbb6791d4b14e41e18cde94d00ff1932bd0f4
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
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