mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #63248 from xymus/swift-export-as
[ModuleInterface] Intro the flag `-export-as` for Swift modules
This commit is contained in:
@@ -1073,6 +1073,11 @@ void Serializer::writeHeader(const SerializationOptions &options) {
|
||||
PackageName.emit(ScratchRecord, M->getPackageName().str());
|
||||
}
|
||||
|
||||
if (!M->getExportAsName().empty()) {
|
||||
options_block::ModuleExportAsNameLayout ExportAs(Out);
|
||||
ExportAs.emit(ScratchRecord, M->getExportAsName().str());
|
||||
}
|
||||
|
||||
if (M->isConcurrencyChecked()) {
|
||||
options_block::IsConcurrencyCheckedLayout IsConcurrencyChecked(Out);
|
||||
IsConcurrencyChecked.emit(ScratchRecord);
|
||||
|
||||
Reference in New Issue
Block a user