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 29ee108 commit fd1590aCopy full SHA for fd1590a
Sources/SwiftDriver/Jobs/FrontendJobHelpers.swift
@@ -85,6 +85,13 @@ extension Driver {
85
commandLine.appendFlag("-aarch64-use-tbi")
86
}
87
88
+ // Potentially unavailable enum cases are downgraded to a warning when building a
89
+ // swiftmodule, to allow building a module (or module interface) for an older
90
+ // deployment target than the framework itself.
91
+ if compilerOutputType == .swiftModule {
92
+ commandLine.appendFlag("-warn-on-potentially-unavailable-enum-case")
93
+ }
94
+
95
// Enable or disable ObjC interop appropriately for the platform
96
if targetTriple.isDarwin {
97
commandLine.appendFlag(.enableObjcInterop)
0 commit comments