Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec6beb4

Browse files
PackageToJS: Fix missing Extern detection for Swift 6.2+
1 parent3674e57 commitec6beb4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎Plugins/PackageToJS/Sources/PackageToJSPlugin.swift‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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, argumentsin
77-
guard
78-
build.logText.contains("@_extern requires '-enable-experimental-feature Extern'")
79-
else{
77+
letpossibleMessages:[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
returnnil
8185
}
8286
return"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp