Skip to content

Commit 974710e

Browse files
committed
Use -enable-ossa-modules for all of stdlib/public
With this, even non-transparent functions will have their ownership eliminated later in the pipeline
1 parent 6467d0e commit 974710e

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
@@ -1671,6 +1671,7 @@ function(add_swift_target_library name)
16711671
# behavior for their requirements.
16721672
if (SWIFTLIB_IS_STDLIB)
16731673
list(APPEND SWIFTLIB_SWIFT_COMPILE_FLAGS "-warn-implicit-overrides")
1674+
list(APPEND SWIFTLIB_SWIFT_COMPILE_FLAGS "-Xfrontend;-enable-ossa-modules")
16741675
endif()
16751676

16761677
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)