Skip to content

Commit 4cddfcc

Browse files
author
Ross Bayer
committed
[Build System: CMake] Convert the SWIFT_STDLIB_BUILD_TYPE variable into a CMake cache variable in cmake/modules/StandaloneOverlay.cmake
1 parent 6060557 commit 4cddfcc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/modules/StandaloneOverlay.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ endif()
1010

1111
set(CMAKE_INSTALL_PREFIX "${SWIFT_DEST_ROOT}${TOOLCHAIN_DIR}/usr")
1212

13+
set(SWIFT_STDLIB_BUILD_TYPE "Release" CACHE STRING
14+
"Build type for the Swift standard library and SDK overlays [Debug, RelWithDebInfo, Release, MinSizeRel]")
15+
set_property(CACHE SWIFT_STDLIB_BUILD_TYPE PROPERTY
16+
STRINGS "Debug" "RelWithDebInfo" "Release" "MinSizeRel")
17+
1318
# Only happens if it's called from a top-level cmake invocation.
1419
set(BUILD_STANDALONE TRUE)
15-
set(SWIFT_STDLIB_BUILD_TYPE "Release")
1620
set(SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES "SHARED")
1721
set(SWIFT_INSTALL_COMPONENTS "sdk-overlay" CACHE STRING "")
1822
set(SWIFT_DARWIN_DEPLOYMENT_VERSION_OSX "10.9" CACHE STRING "")

0 commit comments

Comments
 (0)