mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -864,6 +864,7 @@ void Serializer::writeBlockInfoBlock() {
|
||||
BLOCK_RECORD(options_block, ALLOW_NON_RESILIENT_ACCESS);
|
||||
BLOCK_RECORD(options_block, SERIALIZE_PACKAGE_ENABLED);
|
||||
BLOCK_RECORD(options_block, STRICT_MEMORY_SAFETY);
|
||||
BLOCK_RECORD(options_block, DEFERRED_CODE_GEN);
|
||||
BLOCK_RECORD(options_block, CXX_STDLIB_KIND);
|
||||
BLOCK_RECORD(options_block, PUBLIC_MODULE_NAME);
|
||||
BLOCK_RECORD(options_block, SWIFT_INTERFACE_COMPILER_VERSION);
|
||||
@@ -1177,6 +1178,11 @@ void Serializer::writeHeader() {
|
||||
StrictMemorySafety.emit(ScratchRecord);
|
||||
}
|
||||
|
||||
if (M->deferredCodeGen()) {
|
||||
options_block::DeferredCodeGenLayout DeferredCodeGen(Out);
|
||||
DeferredCodeGen.emit(ScratchRecord);
|
||||
}
|
||||
|
||||
if (M->hasCxxInteroperability()) {
|
||||
options_block::HasCxxInteroperabilityEnabledLayout
|
||||
CxxInteroperabilityEnabled(Out);
|
||||
|
||||
Reference in New Issue
Block a user