Skip to content

Commit f7f7baa

Browse files
committed
cmake: specify stdlib and overlays with an API library-level
1 parent 0185780 commit f7f7baa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ function(_compile_swift_files
476476
# The standard library and overlays are built resiliently when SWIFT_STDLIB_STABLE_ABI=On.
477477
if(SWIFTFILE_IS_STDLIB AND SWIFT_STDLIB_STABLE_ABI)
478478
list(APPEND swift_flags "-enable-library-evolution")
479+
list(APPEND swift_flags "-Xfrontend" "-library-level" "-Xfrontend" "api")
479480
endif()
480481

481482
if(SWIFT_STDLIB_SINGLE_THREADED_RUNTIME)

0 commit comments

Comments
 (0)