@@ -54,6 +54,10 @@ include(CheckSymbolExists)
5454# This is primarily to support building smaller or faster project files.
5555#
5656
57+ option (SWIFT_APPEND_VC_REV
58+ "Embed the version control system revision in Swift"
59+ TRUE )
60+
5761option (SWIFT_INCLUDE_TOOLS
5862 "Generate build targets for swift tools"
5963 TRUE )
@@ -365,6 +369,11 @@ option(SWIFT_REPORT_STATISTICS
365369 "Create json files which contain internal compilation statistics"
366370 FALSE )
367371
372+ # FIXME(wasm) Reflection tests are temporalily disabled due to lack of linker features
373+ option (SWIFTWASM_DISABLE_REFLECTION_TEST
374+ "Disable building swift-reflection-test for WebAssembly build"
375+ FALSE )
376+
368377#
369378# User-configurable experimental options. Do not use in production builds.
370379#
@@ -398,6 +407,10 @@ option(SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING
398407 "Enable experimental Swift differentiable programming features"
399408 FALSE )
400409
410+ option (SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY
411+ "Enable experimental Swift concurrency model"
412+ FALSE )
413+
401414#
402415# End of user-configurable options.
403416#
@@ -848,6 +861,7 @@ if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
848861 message (STATUS "" )
849862
850863 message (STATUS "Differentiable Programming Support: ${SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING} " )
864+ message (STATUS "Concurrency Support: ${SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY} " )
851865 message (STATUS "" )
852866else ()
853867 message (STATUS "Not building Swift standard library, SDK overlays, and runtime" )
@@ -920,13 +934,7 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
920934endif ()
921935
922936find_package (Python2 COMPONENTS Interpreter REQUIRED)
923- find_package (Python3 COMPONENTS Interpreter)
924- if (NOT Python3_Interpreter_FOUND)
925- message (WARNING "Python3 not found, using python2 as a fallback" )
926- add_executable (Python3::Interpreter IMPORTED )
927- set_target_properties (Python3::Interpreter PROPERTIES
928- IMPORTED_LOCATION ${Python2_EXECUTABLE} )
929- endif ()
937+ find_package (Python3 COMPONENTS Interpreter REQUIRED)
930938
931939#
932940# Find optional dependencies.
@@ -1137,6 +1145,15 @@ if(SWIFT_INCLUDE_TOOLS)
11371145 # Refer to the large comment above the add_subdirectory(stdlib) call.
11381146 # https://bugs.swift.org/browse/SR-5975
11391147 add_subdirectory (tools)
1148+
1149+ # Localization targets are configured in a way that assume the swift
1150+ # frontend is being built, so trying to include them for other builds
1151+ # (like stdlib) fail!
1152+ #
1153+ # Diagnostics information is only useful for the frontend compiler
1154+ # anyway, so let's only include it if the compiler is being built,
1155+ # which at the moment seems like if SWIFT_INCLUDE_TOOLS is defined.
1156+ add_subdirectory (localization)
11401157endif ()
11411158
11421159add_subdirectory (utils)
0 commit comments