We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16683fd commit d55e9a3Copy full SHA for d55e9a3
Plugins/WITExtractorPlugin/Plugin.swift
@@ -48,11 +48,16 @@ struct Plugin: CommandPlugin {
48
"--package-name", context.package.displayName,
49
"--wit-output-path", witOutputPath.string,
50
"--swift-output-path", swiftOutputPath.string,
51
- "-I", buildPath.string,
52
- // SwiftPM 6.0 and later emits swiftmodule files into a separate directory
53
- // https://github.com/swiftlang/swift-package-manager/pull/7212
54
"-I", buildPath.appending(["Modules"]).string,
55
]
+
+ #if compiler(<6.0)
+ // Swift 5.10 and earlier emit module files under the per-configuration build directory
56
+ // instead of the Modules directory.
57
+ arguments += [
58
+ "-I", buildPath.string,
59
+ ]
60
+ #endif
61
if let sdk {
62
arguments += ["-sdk", sdk]
63
}
0 commit comments