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 9a40e2d commit ada88e1Copy full SHA for ada88e1
lib/Serialization/SerializeSIL.cpp
@@ -1682,8 +1682,10 @@ void SILSerializer::writeSILBlock(const SILModule *SILMod) {
1682
}
1683
1684
// Emit only declarations if it is a module with pre-specializations.
1685
+ // And only do it in optimized builds.
1686
bool emitDeclarationsForOnoneSupport =
- SILMod->getSwiftModule()->getName().str() == SWIFT_ONONE_SUPPORT;
1687
+ SILMod->getSwiftModule()->getName().str() == SWIFT_ONONE_SUPPORT &&
1688
+ SILMod->getOptions().Optimization > SILOptions::SILOptMode::Debug;
1689
1690
// Go through all the SILFunctions in SILMod and write out any
1691
// mandatory function bodies.
0 commit comments