mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Moving the rest of the references to the compiler source directory to
use the `SwiftCore_SWIFTC_SOURCE_DIR` variable instead of
`${PROJECT_SOURCE_DIR}/../../`.
6 lines
316 B
CMake
6 lines
316 B
CMake
file(STRINGS "${SwiftCore_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()
|