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 3674e57 commit ec6beb4Copy full SHA for ec6beb4
1 file changed
Plugins/PackageToJS/Sources/PackageToJSPlugin.swift
@@ -74,9 +74,13 @@ struct PackageToJSPlugin: CommandPlugin {
74
(
75
// In case the SwiftPM target using BridgeJS didn't specify `.enableExperimentalFeature("Extern")`
76
{ build, arguments in
77
- guard
78
- build.logText.contains("@_extern requires '-enable-experimental-feature Extern'")
79
- else {
+ let possibleMessages: [String] = [
+ "@_extern requires '-enable-experimental-feature Extern'",
+ // Swift 6.2 and later quotes attributes in diagnostics
80
+ // https://github.com/swiftlang/swift/pull/80593
81
+ "'@_extern' requires '-enable-experimental-feature Extern'",
82
+ ]
83
+ guard possibleMessages.contains(where: build.logText.contains) else {
84
return nil
85
}
86
return """
0 commit comments