There was an error while loading. Please reload this page.
2 parents c8e3c84 + eb14fa5 commit 80b467fCopy full SHA for 80b467f
Sources/SwiftDriver/Jobs/Toolchain+LinkerSupport.swift
@@ -26,9 +26,14 @@ extension Toolchain {
26
for targetInfo: FrontendTargetInfo,
27
parsedOptions: inout ParsedOptions
28
) throws -> VirtualPath {
29
+ var platform = targetInfo.target.triple.platformName(conflatingDarwin: true)!
30
+ // compiler-rt moved these Android sanitizers into `lib/linux/` a couple
31
+ // years ago, llvm/llvm-project@a68ccba, so look for them there instead.
32
+ if platform == "android" {
33
+ platform = "linux"
34
+ }
35
return VirtualPath.lookup(targetInfo.runtimeResourcePath.path)
- .appending(components: "clang", "lib",
- targetInfo.target.triple.platformName(conflatingDarwin: true)!)
36
+ .appending(components: "clang", "lib", platform)
37
}
38
39
func runtimeLibraryPaths(
0 commit comments