From b36c6e5dd6165acf44a928ca1e80bdadcf67cc63 Mon Sep 17 00:00:00 2001 From: Michael Gottesman Date: Wed, 24 Oct 2018 17:44:26 -0700 Subject: [PATCH] [sil-ownership] Enable ownership verification on all of the stdlib libraries. rdar://29791263 --- cmake/modules/SwiftSource.cmake | 2 +- stdlib/public/core/CMakeLists.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmake/modules/SwiftSource.cmake b/cmake/modules/SwiftSource.cmake index e20e62862b5aa..9439d7b3c539d 100644 --- a/cmake/modules/SwiftSource.cmake +++ b/cmake/modules/SwiftSource.cmake @@ -241,7 +241,7 @@ function(_compile_swift_files list(APPEND swift_flags "-Xfrontend" "-assume-single-threaded") endif() - if(SWIFT_STDLIB_ENABLE_SIL_OWNERSHIP AND SWIFTFILE_IS_STDLIB) + if(SWIFTFILE_IS_STDLIB) list(APPEND swift_flags "-Xfrontend" "-enable-sil-ownership") endif() diff --git a/stdlib/public/core/CMakeLists.txt b/stdlib/public/core/CMakeLists.txt index 035381d0fa4ab..8bf683c7fe35c 100644 --- a/stdlib/public/core/CMakeLists.txt +++ b/stdlib/public/core/CMakeLists.txt @@ -258,7 +258,6 @@ endif() list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-inline-generics") list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-partial-specialization") -list(APPEND swift_stdlib_compile_flags "-Xfrontend" "-enable-sil-ownership") if(SWIFT_STDLIB_ENABLE_STDLIBCORE_EXCLUSIVITY_CHECKING) list(APPEND swift_stdlib_compile_flags "-enforce-exclusivity=checked") endif()