Skip to content

Commit 5f05670

Browse files
authored
swift test: Fix incorrect wasmkit arguments (#9114)
`wasmkit` needs to bridge current directory to the host with the additional `--dir .` option for `swift test` to work. Fixes #9113. rdar://160218251
1 parent a33af66 commit 5f05670

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/PackageModel/SwiftSDKs/SwiftSDK.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ extension SwiftSDK {
896896
) throws -> [SwiftSDK] {
897897
let wasmKitProperties = Toolset.ToolProperties(
898898
path: hostToolchainBinDir.appending("wasmkit"),
899-
extraCLIOptions: ["run"]
899+
extraCLIOptions: ["run", "--dir", "."]
900900
)
901901

902902
switch semanticVersion.schemaVersion {

Tests/PackageModelTests/SwiftSDKTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ final class SwiftSDKTests: XCTestCase {
578578

579579
let wasmKitProperties = Toolset.ToolProperties(
580580
path: toolchainBinAbsolutePath.appending("wasmkit"),
581-
extraCLIOptions: ["run"]
581+
extraCLIOptions: ["run", "--dir", "."]
582582
)
583583
XCTAssertEqual(wasiWithoutToolsetsDecoded[0].toolset.knownTools[.debugger], wasmKitProperties)
584584

0 commit comments

Comments
 (0)