Merge pull request #72218 from aschwaighofer/fragile_resilient_protocols

IRGen: Add code to support building fragile resilient protocol witnesses
This commit is contained in:
Arnold Schwaighofer
2024-03-13 08:40:44 -07:00
committed by GitHub
19 changed files with 166 additions and 4 deletions

View File

@@ -629,6 +629,11 @@ function(_compile_swift_files
list(APPEND swift_flags "-Xfrontend" "-swift-async-frame-pointer=never")
endif()
if (SWIFT_STDLIB_USE_FRAGILE_RESILIENT_PROTOCOL_WITNESS_TABLES)
list(APPEND swift_flags "-Xfrontend" "-enable-fragile-relative-protocol-tables")
list(APPEND swift_flags "-enable-library-evolution")
endif()
if(SWIFT_STDLIB_DISABLE_INSTANTIATION_CACHES)
list(APPEND swift_flags "-Xfrontend" "-disable-preallocated-instantiation-caches")
endif()