File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Plugins/PackageToJS/Sources Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,13 @@ struct PackageToJSPlugin: CommandPlugin {
74
74
(
75
75
// In case the SwiftPM target using BridgeJS didn't specify `.enableExperimentalFeature("Extern")`
76
76
{ build, arguments in
77
- guard
78
- build. logText. contains ( " @_extern requires '-enable-experimental-feature Extern' " )
79
- else {
77
+ let possibleMessages : [ String ] = [
78
+ " @_extern requires '-enable-experimental-feature Extern' " ,
79
+ // 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 {
80
84
return nil
81
85
}
82
86
return """
You can’t perform that action at this time.
0 commit comments