Skip to content

Commit afe375a

Browse files
committed
disable SIL verification in release builds
1 parent c77273e commit afe375a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ let package = Package(
245245
exclude: ["swift-java.config"],
246246
swiftSettings: [
247247
.swiftLanguageMode(.v5),
248-
.unsafeFlags(["-I\(javaIncludePath)", "-I\(javaPlatformIncludePath)"], .when(platforms: [.macOS, .linux, .windows]))
248+
.unsafeFlags(["-I\(javaIncludePath)", "-I\(javaPlatformIncludePath)"], .when(platforms: [.macOS, .linux, .windows])),
249+
.unsafeFlags(["-Xfrontend", "-sil-verify-none"], .when(configuration: .release)), // Workaround for https://github.com/swiftlang/swift/issues/84899
249250
],
250251
linkerSettings: [
251252
.unsafeFlags(

0 commit comments

Comments
 (0)