@@ -54,6 +54,10 @@ include(CheckSymbolExists)
54
54
# This is primarily to support building smaller or faster project files.
55
55
#
56
56
57
+ option (SWIFT_APPEND_VC_REV
58
+ "Embed the version control system revision in Swift"
59
+ TRUE )
60
+
57
61
option (SWIFT_INCLUDE_TOOLS
58
62
"Generate build targets for swift tools"
59
63
TRUE )
@@ -398,6 +402,10 @@ option(SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING
398
402
"Enable experimental Swift differentiable programming features"
399
403
FALSE )
400
404
405
+ option (SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY
406
+ "Enable experimental Swift concurrency model"
407
+ FALSE )
408
+
401
409
#
402
410
# End of user-configurable options.
403
411
#
@@ -848,6 +856,7 @@ if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
848
856
message (STATUS "" )
849
857
850
858
message (STATUS "Differentiable Programming Support: ${SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING} " )
859
+ message (STATUS "Concurrency Support: ${SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY} " )
851
860
message (STATUS "" )
852
861
else ()
853
862
message (STATUS "Not building Swift standard library, SDK overlays, and runtime" )
@@ -920,13 +929,7 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
920
929
endif ()
921
930
922
931
find_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 ()
932
+ find_package (Python3 COMPONENTS Interpreter REQUIRED)
930
933
931
934
#
932
935
# Find optional dependencies.
@@ -1137,6 +1140,15 @@ if(SWIFT_INCLUDE_TOOLS)
1137
1140
# Refer to the large comment above the add_subdirectory(stdlib) call.
1138
1141
# https://bugs.swift.org/browse/SR-5975
1139
1142
add_subdirectory (tools)
1143
+
1144
+ # Localization targets are configured in a way that assume the swift
1145
+ # frontend is being built, so trying to include them for other builds
1146
+ # (like stdlib) fail!
1147
+ #
1148
+ # Diagnostics information is only useful for the frontend compiler
1149
+ # anyway, so let's only include it if the compiler is being built,
1150
+ # which at the moment seems like if SWIFT_INCLUDE_TOOLS is defined.
1151
+ add_subdirectory (localization)
1140
1152
endif ()
1141
1153
1142
1154
add_subdirectory (utils)
0 commit comments