There was an error while loading. Please reload this page.
1 parent c24fe5f commit eb14fa5Copy full SHA for eb14fa5
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