@@ -288,8 +288,9 @@ endif()
288
288
if (SWIFT_STDLIB_ENABLE_STDLIBCORE_EXCLUSIVITY_CHECKING )
289
289
list (APPEND swift_stdlib_compile_flags "-enforce-exclusivity=checked" )
290
290
endif ()
291
+ set (compile_flags_for_final_build )
291
292
if (SWIFT_ENABLE_ARRAY_COW_CHECKS )
292
- list (APPEND swift_stdlib_compile_flags "-DCOW_CHECKS_ENABLED" )
293
+ list (APPEND compile_flags_for_final_build "-DCOW_CHECKS_ENABLED" )
293
294
endif ()
294
295
295
296
# STAGING: Temporarily avoids having to write #fileID in Swift.swiftinterface.
@@ -318,16 +319,16 @@ set(swiftCore_common_options
318
319
${SWIFTLIB_SOURCES}
319
320
GYB_SOURCES
320
321
${SWIFTLIB_GYB_SOURCES}
321
- SWIFT_COMPILE_FLAGS
322
- ${swift_stdlib_compile_flags} -Xcc -DswiftCore_EXPORTS ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
323
322
LINK_FLAGS
324
323
${swift_core_link_flags}
325
324
PRIVATE_LINK_LIBRARIES
326
325
${swift_core_private_link_libraries}
327
326
INCORPORATE_OBJECT_LIBRARIES
328
327
${swift_core_incorporate_object_libraries}
329
328
FRAMEWORK_DEPENDS
330
- ${swift_core_framework_depends} )
329
+ ${swift_core_framework_depends}
330
+ SWIFT_COMPILE_FLAGS
331
+ ${swift_stdlib_compile_flags} -Xcc -DswiftCore_EXPORTS ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS} )
331
332
332
333
# The copy_shim_headers target dependency is required to let the
333
334
# build system know that there's a rule to produce the shims
@@ -375,6 +376,7 @@ endif()
375
376
add_swift_target_library (swiftCore
376
377
${SWIFT_STDLIB_LIBRARY_BUILD_TYPES}
377
378
${swiftCore_common_options}
379
+ ${compile_flags_for_final_build}
378
380
FILE_DEPENDS
379
381
${swiftCore_common_dependencies}
380
382
INSTALL_IN_COMPONENT
0 commit comments