Skip to content

Commit f57615d

Browse files
committed
Tests: address TODO for Windows
Now that the frontend properly consults the architecture independent path for the Swift modules, we can address the TODO that was left to be addressed. This requires swiftlang/swift#42419 and swiftlang/swift-installer-scripts#119
1 parent c62800f commit f57615d

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

Tests/SwiftDriverTests/ExplicitModuleBuildTests.swift

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -932,23 +932,8 @@ final class ExplicitModuleBuildTests: XCTestCase {
932932
return (stdLibPath, stdLibPath.appending(component: "shims"))
933933
} else if driver.targetTriple.isWindows {
934934
if let sdkroot = try driver.toolchain.defaultSDKPath(driver.targetTriple) {
935-
return (sdkroot
936-
.appending(component: "usr")
937-
.appending(component: "lib")
938-
.appending(component: "swift")
939-
.appending(component: "windows")
940-
// TODO(compnerd) this should be dropped, but we need to
941-
// synchronize with the frontend and installer to ensure that
942-
// everything is setup properly. With the swiftmodule
943-
// directory structure being supported, we no longer need to
944-
// put the swiftmodules in the architecture directory, only
945-
// the import libraries.
946-
.appending(component: driver.targetTriple.archName),
947-
sdkroot
948-
.appending(component: "usr")
949-
.appending(component: "lib")
950-
.appending(component: "swift")
951-
.appending(component: "shims"))
935+
return (sdkroot.appending(components: "usr", "lib", "swift", "windows"),
936+
sdkroot.appending(components: "usr", "lib", "swift", "shims"))
952937
}
953938
return (toolchainRootPath
954939
.appending(component: "lib")

0 commit comments

Comments
 (0)