You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticletwarningsAsErrors:Option=Option("-warnings-as-errors",.flag, attributes:[.frontend], helpText:"Treat warnings as errors")
430
430
publicstaticletwholeModuleOptimization:Option=Option("-whole-module-optimization",.flag, attributes:[.frontend,.noInteractive], helpText:"Optimize input files together instead of individually")
431
+
publicstaticletnoWholeModuleOptimization:Option=Option("-no-whole-module-optimization",.flag, attributes:[.frontend,.noInteractive], helpText:"Disable optimizing input files together instead of individually")
publicstaticletworkingDirectory:Option=Option("-working-directory",.separate, metaVar:"<path>", helpText:"Resolve file paths relative to the specified directory")
diagnostics.expect(.warning("ignoring '-enable-batch-mode' because '-whole-module-optimization' was also specified"))
176
+
}
177
+
178
+
tryassertDriverDiagnostics(args:"swiftc","-enable-batch-mode","-whole-module-optimization","-no-whole-module-optimization","-index-file","-module-name","foo"){ driver, diagnostics in
0 commit comments