Skip to content

Commit c4ace6a

Browse files
committed
Make sure we define availability macros for standalone library builds
Fixes rdar://85639438.
1 parent b1eb438 commit c4ace6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/modules/StandaloneOverlay.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ option(SWIFT_ENABLE_MODULE_INTERFACES
7373
set(SWIFT_STDLIB_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
7474
"Build type for the Swift standard library and SDK overlays.")
7575

76+
file(STRINGS "../../utils/availability-macros.def" SWIFT_STDLIB_AVAILABILITY_DEFINITIONS)
77+
list(FILTER SWIFT_STDLIB_AVAILABILITY_DEFINITIONS EXCLUDE REGEX "^\\s*(#.*)?$")
78+
7679
set(SWIFT_DARWIN_SUPPORTED_ARCHS "" CACHE STRING
7780
"Semicolon-separated list of architectures to configure on Darwin platforms. \
7881
If left empty all default architectures are configured.")

0 commit comments

Comments
 (0)