Skip to content

Commit bd49534

Browse files
committed
[ownership] Compile stdlibCore with ownership stripping after serialization.
1 parent 7e6b07c commit bd49534

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/core/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ if(SWIFT_STDLIB_ENABLE_STDLIBCORE_EXCLUSIVITY_CHECKING)
288288
list(APPEND swift_stdlib_compile_flags "-enforce-exclusivity=checked")
289289
endif()
290290

291+
list(APPEND swift_stdlib_compile_flags "-Xfrontend" "-enable-ownership-stripping-after-serialization")
292+
291293
if(SWIFT_CHECK_ESSENTIAL_STDLIB)
292294
add_swift_target_library(swift_stdlib_essential ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB IS_STDLIB_CORE
293295
INSTALL_IN_COMPONENT never_install

0 commit comments

Comments
 (0)