Introduce SWIFT_STDLIB_HAS_TYPE_PRINTING flag to remove the ability to print types at runtime (to save codesize) (#40649)

This commit is contained in:
Kuba (Brecka) Mracek
2021-12-21 17:47:54 -08:00
committed by GitHub
parent 4405620aa6
commit 663a6fb771
11 changed files with 43 additions and 3 deletions

View File

@@ -364,6 +364,10 @@ function(_add_target_variant_c_compile_flags)
list(APPEND result "-DSWIFT_STDLIB_SHORT_MANGLING_LOOKUPS")
endif()
if(SWIFT_STDLIB_HAS_TYPE_PRINTING)
list(APPEND result "-DSWIFT_STDLIB_HAS_TYPE_PRINTING")
endif()
if(SWIFT_STDLIB_SUPPORTS_BACKTRACE_REPORTING)
list(APPEND result "-DSWIFT_STDLIB_SUPPORTS_BACKTRACE_REPORTING")
endif()