mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ParseableInterfaces] Stop explicitly optimizing cached modules
Previously, we always optimized cached modules. Now, use the flag we're already preserving to optimize them. Fixes rdar://46358840
This commit is contained in:
@@ -520,10 +520,6 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
// Optimize emitted modules. This has to happen after we parse arguments,
|
||||
// because parseSILOpts would override the current optimization mode.
|
||||
subInvocation.getSILOptions().OptMode = OptimizationMode::ForSpeed;
|
||||
|
||||
// Build the .swiftmodule; this is a _very_ abridged version of the logic
|
||||
// in performCompile in libFrontendTool, specialized, to just the one
|
||||
// module-serialization task we're trying to do here.
|
||||
|
||||
Reference in New Issue
Block a user