mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Enable 'StopOptimizationAfterSerialization' SIL Option for explicit
'-compile-module-from-interface' tasks
This commit is contained in:
@@ -1941,7 +1941,8 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
|
||||
|
||||
// If we're only emitting a module, stop optimizations once we've serialized
|
||||
// the SIL for the module.
|
||||
if (FEOpts.RequestedAction == FrontendOptions::ActionType::EmitModuleOnly)
|
||||
if (FEOpts.RequestedAction == FrontendOptions::ActionType::EmitModuleOnly ||
|
||||
FEOpts.RequestedAction == FrontendOptions::ActionType::CompileModuleFromInterface)
|
||||
Opts.StopOptimizationAfterSerialization = true;
|
||||
|
||||
// Propagate the typechecker's understanding of
|
||||
|
||||
Reference in New Issue
Block a user