Skip to content

Commit 5d194a9

Browse files
committed
[CMake] Update MinSizeRel configuration for Apple platforms...
...and use it as a default for one of them. Addresses rdar://142820419
1 parent 30a58fa commit 5d194a9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Runtimes/Core/cmake/caches/Vendors/Apple/apple-common.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ set(SwiftCore_ENABLE_VECTOR_TYPES ON CACHE BOOL "")
1212
set(SwiftCore_ENABLE_RUNTIME_FUNCTION_COUNTERS ON CACHE BOOL "")
1313
set(SwiftCore_ENABLE_BACKDEPLOYMENT_SUPPORT ON CACHE BOOL "")
1414
set(SwiftCore_ENABLE_FILESYSTEM_SUPPORT ON CACHE BOOL "")
15+
16+
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -g -DNDEBUG" CACHE STRING "")
17+
set(CMAKE_C_FLAGS_MINSIZEREL "-Os -g -DNDEBUG" CACHE STRING "")
18+
set(CMAKE_Swift_FLAGS_MINSIZEREL "-Osize -g" CACHE STRING "")

Runtimes/Core/cmake/caches/Vendors/Apple/arm64-BridgeOS.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ set(CMAKE_Swift_COMPILER_TARGET "arm64-apple-bridgeos${CMAKE_OSX_DEPLOYMENT_TARG
88

99
set(SwiftCore_ARCH_SUBDIR arm64)
1010
set(SwiftCore_PLATFORM_SUBDIR freestanding)
11+
set(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "")
1112

1213
include("${CMAKE_CURRENT_LIST_DIR}/apple-common.cmake")

0 commit comments

Comments
 (0)