Skip to content

Commit d401c39

Browse files
Use native build system in PackageToJS tests
1 parent 06dcad7 commit d401c39

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Plugins/PackageToJS/Tests/ExampleTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ extension Trait where Self == ConditionTrait {
227227
fileURLWithPath: "swift",
228228
relativeTo: URL(fileURLWithPath: try #require(Self.getSwiftPath()))
229229
)
230+
var args = args
231+
if args.first == "package" {
232+
args.insert(contentsOf: ["--build-system", "native"], at: 1)
233+
}
230234
try runProcess(swiftExecutable, args, env)
231235
}
232236
try body(destination.appending(path: path), runProcess, runSwift)

0 commit comments

Comments
 (0)