mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
CMake: ensure we can build compatibility libraries with macOS 14.0 SDK
In particular, fix the Apple Silicon benchmark job by do not propagating the flag added in #83399. Addresses rdar://157188603
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
# Toolchain-only build products
|
||||
|
||||
# `-fsized-deallocation` would cause a build failure
|
||||
# when targeting macOS 14.0 SDK used in some configuration
|
||||
get_property(directory_compile_options
|
||||
DIRECTORY
|
||||
PROPERTY COMPILE_OPTIONS)
|
||||
list(FILTER directory_compile_options EXCLUDE REGEX ".*-fsized-deallocation.*")
|
||||
set_property(DIRECTORY PROPERTY COMPILE_OPTIONS ${directory_compile_options})
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/../cmake/modules)
|
||||
include(StdlibOptions)
|
||||
include(AddSwiftStdlib)
|
||||
|
||||
Reference in New Issue
Block a user