Skip to content

Commit e7120a6

Browse files
authored
Merge pull request swiftlang#40313 from DougGregor/availability-standalone
Make sure we define availability macros for standalone library builds
2 parents 7be6058 + c4ace6a commit e7120a6

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)