Skip to content

Commit 3e08737

Browse files
committed
Fix swiftrtPath
1 parent 9fcd3f2 commit 3e08737

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftDriver/Jobs/WindowsToolchain+LinkerSupport.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ extension WindowsToolchain {
9393
isShared: hasRuntimeArgs
9494
)
9595

96-
if hasRuntimeArgs && targetTriple.environment != .android {
96+
if hasRuntimeArgs {
9797
// FIXME: We probably shouldn't be adding an rpath here unless we know
9898
// ahead of time the standard library won't be copied.
9999
for path in runtimePaths {
@@ -112,7 +112,7 @@ extension WindowsToolchain {
112112

113113
let swiftrtPath = sharedResourceDirPath
114114
.appending(
115-
components: "x86_64", "swiftrt.o"
115+
components: "windows", targetTriple.archName , "swiftrt.obj"
116116
)
117117
commandLine.appendPath(swiftrtPath)
118118

0 commit comments

Comments
 (0)