Skip to content

Commit 0ebf98c

Browse files
committed
[cmake] Ignore required explicit availability in Swift stdlib
1 parent 1bf1fee commit 0ebf98c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,8 @@ function(_compile_swift_files
483483
# The standard library and overlays are built resiliently when SWIFT_STDLIB_STABLE_ABI=On.
484484
if(SWIFTFILE_IS_STDLIB AND SWIFT_STDLIB_STABLE_ABI)
485485
list(APPEND swift_flags "-enable-library-evolution")
486-
list(APPEND swift_flags "-Xfrontend" "-library-level" "-Xfrontend" "api")
486+
list(APPEND swift_flags "-library-level" "api")
487+
list(APPEND swift_flags "-require-explicit-availability=ignore")
487488
endif()
488489

489490
if("${SWIFT_SDK_${SWIFTFILE_SDK}_THREADING_PACKAGE}" STREQUAL "none")

0 commit comments

Comments
 (0)