We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e34d1 commit 7a9f894Copy full SHA for 7a9f894
stdlib/public/core/CMakeLists.txt
@@ -287,8 +287,10 @@ if(SWIFT_STDLIB_SIL_DEBUGGING)
287
list(APPEND swift_stdlib_compile_flags "-Xfrontend" "-gsil")
288
endif()
289
290
-list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-inline-generics")
291
-list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-partial-specialization")
+if(NOT "${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel")
+ list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-inline-generics")
292
+ list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-partial-specialization")
293
+endif()
294
if(SWIFT_STDLIB_ENABLE_STDLIBCORE_EXCLUSIVITY_CHECKING)
295
list(APPEND swift_stdlib_compile_flags "-enforce-exclusivity=checked")
296
0 commit comments