Skip to content

Commit ef85bde

Browse files
committed
Guard emission of variant module behind a flag
1 parent 2196801 commit ef85bde

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/SwiftDriver/Jobs/Planning.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ extension Driver {
184184

185185
private mutating func addVariantModuleJobs(addJobBeforeCompiles: (Job) -> Void,
186186
addJobAfterCompiles: (Job) -> Void) throws {
187+
guard parsedOptions.contains(.experimentalEmitVariantModule) else {
188+
return
189+
}
187190
guard variantModuleOutputInfo != nil else {
188191
return
189192
}

0 commit comments

Comments
 (0)