Skip to content

Commit d8cfe92

Browse files
authored
Merge pull request #83468 from edymtt/edymtt/no-sized-deallocation-for-compatibility-archives
2 parents e7e2dc1 + 988531c commit d8cfe92

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)