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 {
7474 (
7575 // In case the SwiftPM target using BridgeJS didn't specify `.enableExperimentalFeature("Extern")`
7676 { 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 {
8084 return nil
8185 }
8286 return """
You can’t perform that action at this time.
0 commit comments