@@ -271,6 +271,19 @@ option(SWIFT_BUILD_STDLIB_CXX_MODULE
271271 "If not building stdlib, controls whether to build the Cxx module"
272272 TRUE )
273273
274+ # The swiftClientRetainRelease library is currently only available for Darwin
275+ # platforms.
276+ if (SWIFT_HOST_VARIANT_SDK IN_LIST SWIFT_DARWIN_PLATFORMS)
277+ # Off by default everywhere for now.
278+ option (SWIFT_BUILD_CLIENT_RETAIN_RELEASE
279+ "Build the swiftClientRetainRelease library"
280+ FALSE )
281+ else ()
282+ option (SWIFT_BUILD_CLIENT_RETAIN_RELEASE
283+ "Build the swiftClientRetainRelease library"
284+ FALSE )
285+ endif ()
286+
274287# In many cases, the CMake build system needs to determine whether to include
275288# a directory, or perform other actions, based on whether the stdlib or SDK is
276289# being built at all -- statically or dynamically. Please note that these
@@ -538,8 +551,8 @@ set(SWIFT_SDK_LINUX_ARCHITECTURES "" CACHE STRING
538551# User-configurable Android specific options.
539552#
540553
541- set (SWIFT_ANDROID_API_LEVEL "" CACHE STRING
542- "Version number for the Android API" )
554+ set (SWIFT_ANDROID_API_LEVEL "28 " CACHE STRING
555+ "Version number for the Android API (default: 28) " )
543556
544557set (SWIFT_ANDROID_NDK_PATH "" CACHE STRING
545558 "Path to the directory that contains the Android NDK tools that are executable on the build machine" )
@@ -1673,7 +1686,8 @@ if(SWIFT_ENABLE_NEW_RUNTIME_BUILD)
16731686 -DCMAKE_COLOR_DIAGNOSTICS:BOOLEAN=${CMAKE_COLOR_DIAGNOSTICS}
16741687 -DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}
16751688 -DSwiftCore_INSTALL_NESTED_SUBDIR=YES
1676- -DSwiftCore_ENABLE_CONCURRENCY=${build_concurrency} )
1689+ -DSwiftCore_ENABLE_CONCURRENCY=${build_concurrency}
1690+ -DCMAKE_OSX_SYSROOT:PATH =${SWIFT_SDK_${sdk} _ARCH_${arch} _PATH})
16771691 if (NOT ${CMAKE_CROSSCOMPILING} )
16781692 add_dependencies ("${stdlib_target} -core" swift-frontend)
16791693 endif ()
@@ -1700,7 +1714,9 @@ if(SWIFT_ENABLE_NEW_RUNTIME_BUILD)
17001714 -DCMAKE_CXX_COMPILER_TARGET:STRING =${stdlib_target_triple}
17011715 -DCMAKE_COLOR_DIAGNOSTICS:BOOLEAN=${CMAKE_COLOR_DIAGNOSTICS}
17021716 -DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}
1703- -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE )
1717+ -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE
1718+ -DSwiftOverlay_ENABLE_CXX_INTEROP=TRUE
1719+ -DCMAKE_OSX_SYSROOT:PATH =${SWIFT_SDK_${sdk} _ARCH_${arch} _PATH})
17041720
17051721 ExternalProject_Add("${stdlib_target} -Supplemental"
17061722 SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /Runtimes/Supplemental"
@@ -1711,7 +1727,7 @@ if(SWIFT_ENABLE_NEW_RUNTIME_BUILD)
17111727 # To ensure incremental builds work as expected
17121728 BUILD_ALWAYS 1
17131729 CMAKE_ARGS
1714- -DSwift_ENABLE_RUNTIMES=StringProcessing|Synchronization|Distributed|Observation
1730+ -DSwift_ENABLE_RUNTIMES=StringProcessing|Synchronization|Distributed|Observation|Runtime
17151731 -DBUILD_SHARED_LIBS=YES
17161732 -DCMAKE_Swift_COMPILER_WORKS:BOOLEAN=YES
17171733 -DCMAKE_BUILD_TYPE:STRING =${CMAKE_BUILD_TYPE}
@@ -1722,9 +1738,11 @@ if(SWIFT_ENABLE_NEW_RUNTIME_BUILD)
17221738 -DCMAKE_Swift_COMPILER_TARGET:STRING =${stdlib_target_triple}
17231739 -DCMAKE_C_COMPILER_TARGET:STRING =${stdlib_target_triple}
17241740 -DCMAKE_CXX_COMPILER_TARGET:STRING =${stdlib_target_triple}
1741+ -DCMAKE_ASM_COMPILER_TARGET:STRING =${stdlib_target_triple}
17251742 -DCMAKE_COLOR_DIAGNOSTICS:BOOLEAN=${CMAKE_COLOR_DIAGNOSTICS}
17261743 -DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}
1727- -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE )
1744+ -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE
1745+ -DCMAKE_OSX_SYSROOT:PATH =${SWIFT_SDK_${sdk} _ARCH_${arch} _PATH})
17281746 endforeach ()
17291747 endforeach ()
17301748endif ()
0 commit comments