File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -270,10 +270,6 @@ option(SWIFT_BUILD_PERF_TESTSUITE
270
270
"Create in-tree targets for building swift performance benchmarks."
271
271
FALSE )
272
272
273
- option (SWIFT_BUILD_REGEX_PARSER_IN_COMPILER
274
- "Build the Swift regex parser as part of the compiler."
275
- TRUE )
276
-
277
273
option (SWIFT_INCLUDE_TESTS "Create targets for building/running tests." TRUE )
278
274
279
275
option (SWIFT_INCLUDE_TEST_BINARIES
@@ -721,6 +717,14 @@ option(SWIFT_BUILD_SWIFT_SYNTAX
721
717
"Enable building swift syntax"
722
718
FALSE )
723
719
720
+ option (SWIFT_BUILD_REGEX_PARSER_IN_COMPILER
721
+ "Build the Swift regex parser as part of the compiler."
722
+ TRUE )
723
+ if (SWIFT_BUILD_REGEX_PARSER_IN_COMPILER AND NOT SWIFT_BUILD_SWIFT_SYNTAX )
724
+ message (WARNING "Force setting SWIFT_BUILD_REGEX_PARSER_IN_COMPILER=OFF because Swift parser integration is disabled" )
725
+ set (SWIFT_BUILD_REGEX_PARSER_IN_COMPILER OFF )
726
+ endif ()
727
+
724
728
set (SWIFT_BUILD_HOST_DISPATCH FALSE )
725
729
if (SWIFT_ENABLE_DISPATCH AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
726
730
# Only build libdispatch for the host if the host tools are being built and
You can’t perform that action at this time.
0 commit comments