Skip to content

Commit ea64147

Browse files
committed
Driver: adjust library search path for -sdk
Adjust the library search path so that the normal build of the runtime/sdk overlay can be used as the SDK content. This allows for the rest of the search to be cascading.
1 parent a7368a4 commit ea64147

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Driver/ToolChains.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,9 @@ void ToolChain::getRuntimeLibraryPaths(SmallVectorImpl<std::string> &runtimeLibP
11951195
scratchPath = SDKPath;
11961196
llvm::sys::path::append(scratchPath, "usr", "lib", "swift");
11971197
runtimeLibPaths.push_back(scratchPath.str());
1198+
1199+
llvm::sys::path::append(scratchPath, getPlatformNameForTriple(getTriple()));
1200+
runtimeLibPaths.push_back(scratchPath.str());
11981201
}
11991202
}
12001203

0 commit comments

Comments
 (0)