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:
@@ -58,7 +58,7 @@ const uint16_t SWIFTMODULE_VERSION_MAJOR = 0;
|
||||
/// describe what change you made. The content of this comment isn't important;
|
||||
/// it just ensures a conflict if two people change the module format.
|
||||
/// Don't worry about adhering to the 80-column limit for this line.
|
||||
const uint16_t SWIFTMODULE_VERSION_MINOR = 739; // CxxStdlib
|
||||
const uint16_t SWIFTMODULE_VERSION_MINOR = 740; // export-as
|
||||
|
||||
/// A standard hash seed used for all string hashes in a serialized module.
|
||||
///
|
||||
@@ -861,6 +861,7 @@ namespace options_block {
|
||||
MODULE_ABI_NAME,
|
||||
IS_CONCURRENCY_CHECKED,
|
||||
MODULE_PACKAGE_NAME,
|
||||
MODULE_EXPORT_AS_NAME,
|
||||
};
|
||||
|
||||
using SDKPathLayout = BCRecordLayout<
|
||||
@@ -924,6 +925,11 @@ namespace options_block {
|
||||
MODULE_PACKAGE_NAME,
|
||||
BCBlob
|
||||
>;
|
||||
|
||||
using ModuleExportAsNameLayout = BCRecordLayout<
|
||||
MODULE_EXPORT_AS_NAME,
|
||||
BCBlob
|
||||
>;
|
||||
}
|
||||
|
||||
/// The record types within the input block.
|
||||
|
||||
Reference in New Issue
Block a user