Skip to content

Commit 83c0234

Browse files
authored
Use -enable-ossa-modules for all of stdlib/public (#39478)
With this, even non-transparent functions will have their ownership eliminated later in the pipeline
1 parent 4317bbd commit 83c0234

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,6 +1705,7 @@ function(add_swift_target_library name)
17051705
# behavior for their requirements.
17061706
if (SWIFTLIB_IS_STDLIB)
17071707
list(APPEND SWIFTLIB_SWIFT_COMPILE_FLAGS "-warn-implicit-overrides")
1708+
list(APPEND SWIFTLIB_SWIFT_COMPILE_FLAGS "-Xfrontend;-enable-ossa-modules")
17081709
endif()
17091710

17101711
if(NOT SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER AND NOT BUILD_STANDALONE AND

stdlib/public/core/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ endif()
286286

287287
# STAGING: Temporarily avoids having to write #fileID in Swift.swiftinterface.
288288
list(APPEND swift_stdlib_compile_flags "-Xfrontend" "-enable-experimental-concise-pound-file")
289-
list(APPEND swift_stdlib_compile_flags "-Xfrontend" "-enable-ossa-modules")
290289

291290
if(SWIFT_CHECK_ESSENTIAL_STDLIB)
292291
add_swift_target_library(swift_stdlib_essential ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB IS_STDLIB_CORE

0 commit comments

Comments
 (0)