Skip to content

Commit 988531c

Browse files
committed
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 swiftlang#83399. Addresses rdar://157188603
1 parent 9b1292d commit 988531c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

stdlib/toolchain/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Toolchain-only build products
22

3+
# `-fsized-deallocation` would cause a build failure
4+
# when targeting macOS 14.0 SDK used in some configuration
5+
get_property(directory_compile_options
6+
DIRECTORY
7+
PROPERTY COMPILE_OPTIONS)
8+
list(FILTER directory_compile_options EXCLUDE REGEX ".*-fsized-deallocation.*")
9+
set_property(DIRECTORY PROPERTY COMPILE_OPTIONS ${directory_compile_options})
10+
311
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/../cmake/modules)
412
include(StdlibOptions)
513
include(AddSwiftStdlib)

0 commit comments

Comments
 (0)