Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions Plugins/WITExtractorPlugin/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,16 @@ struct Plugin: CommandPlugin {
"--package-name", context.package.displayName,
"--wit-output-path", witOutputPath.string,
"--swift-output-path", swiftOutputPath.string,
"-I", buildPath.string,
// SwiftPM 6.0 and later emits swiftmodule files into a separate directory
// https://github.com/swiftlang/swift-package-manager/pull/7212
"-I", buildPath.appending(["Modules"]).string,
]

#if compiler(<6.0)
// Swift 5.10 and earlier emit module files under the per-configuration build directory
// instead of the Modules directory.
arguments += [
"-I", buildPath.string,
]
#endif
if let sdk {
arguments += ["-sdk", sdk]
}
Expand Down
3 changes: 0 additions & 3 deletions Tests/WITExtractorPluginTests/PluginSmokeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import XCTest

class PluginSmokeTests: XCTestCase {
func testExtractPlugin() throws {
#if WASMKIT_CI_TOOLCHAIN_NIGHTLY
throw XCTSkip("XFAIL: https://github.com/swiftwasm/WasmKit/issues/184")
#endif
guard ProcessInfo.processInfo.environment["__XCODE_BUILT_PRODUCTS_DIR_PATHS"] == nil else {
throw XCTSkip(
"\"swift package resolve\" somehow fails to clone git repository only when invoking from Xcode test runner"
Expand Down