Files
swift-mirror/Runtimes/Overlay/cmake/modules/AvailabilityMacros.cmake
Saleem Abdulrasool c54dfe6092 Runtimes: add Overlay project
Add the next stage of the runtimes build - the overlays. This homes the
platform specific overlays for the libraries and is required to make
further progress towards a static SDK for Windows.
2025-03-03 15:36:31 -08:00

6 lines
319 B
CMake

file(STRINGS "${SwiftOverlay_SWIFTC_SOURCE_DIR}/utils/availability-macros.def" availability_defs)
list(FILTER availability_defs EXCLUDE REGEX "^\\s*(#.*)?$")
foreach(def ${availability_defs})
add_compile_options("$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -define-availability -Xfrontend \"${def}\">")
endforeach()