@@ -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 )
@@ -365,6 +369,11 @@ option(SWIFT_REPORT_STATISTICS
365
369
"Create json files which contain internal compilation statistics"
366
370
FALSE )
367
371
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
+
368
377
#
369
378
# User-configurable experimental options. Do not use in production builds.
370
379
#
@@ -398,6 +407,10 @@ option(SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING
398
407
"Enable experimental Swift differentiable programming features"
399
408
FALSE )
400
409
410
+ option (SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY
411
+ "Enable experimental Swift concurrency model"
412
+ FALSE )
413
+
401
414
#
402
415
# End of user-configurable options.
403
416
#
@@ -848,6 +861,7 @@ if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
848
861
message (STATUS "" )
849
862
850
863
message (STATUS "Differentiable Programming Support: ${SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING} " )
864
+ message (STATUS "Concurrency Support: ${SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY} " )
851
865
message (STATUS "" )
852
866
else ()
853
867
message (STATUS "Not building Swift standard library, SDK overlays, and runtime" )
@@ -920,13 +934,7 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
920
934
endif ()
921
935
922
936
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 ()
937
+ find_package (Python3 COMPONENTS Interpreter REQUIRED)
930
938
931
939
#
932
940
# Find optional dependencies.
@@ -1137,6 +1145,15 @@ if(SWIFT_INCLUDE_TOOLS)
1137
1145
# Refer to the large comment above the add_subdirectory(stdlib) call.
1138
1146
# https://bugs.swift.org/browse/SR-5975
1139
1147
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)
1140
1157
endif ()
1141
1158
1142
1159
add_subdirectory (utils)
0 commit comments