mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add module trace information for strict memory safety
Extend the module trace format with a field indicating whether a given module, or any module it depends on, was compiled with strict memory safety enabled. This separate output from the compiler can be used as part of an audit to determine what parts of Swift programs are built with strict memory safety checking enabled.
This commit is contained in:
@@ -970,6 +970,7 @@ namespace options_block {
|
||||
CXX_STDLIB_KIND,
|
||||
PUBLIC_MODULE_NAME,
|
||||
SWIFT_INTERFACE_COMPILER_VERSION,
|
||||
STRICT_MEMORY_SAFETY,
|
||||
};
|
||||
|
||||
using SDKPathLayout = BCRecordLayout<
|
||||
@@ -1066,12 +1067,16 @@ namespace options_block {
|
||||
SERIALIZE_PACKAGE_ENABLED
|
||||
>;
|
||||
|
||||
using StrictMemorySafetyLayout = BCRecordLayout<
|
||||
STRICT_MEMORY_SAFETY
|
||||
>;
|
||||
|
||||
using PublicModuleNameLayout = BCRecordLayout<
|
||||
PUBLIC_MODULE_NAME,
|
||||
BCBlob
|
||||
>;
|
||||
|
||||
using SwiftInterfaceCompilerVersionLayout = BCRecordLayout<
|
||||
using SwiftInterfaceCompilerVersionLayout = BCRecordLayout<
|
||||
SWIFT_INTERFACE_COMPILER_VERSION,
|
||||
BCBlob // version tuple
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user