File tree Expand file tree Collapse file tree 4 files changed +18
-5
lines changed
SwiftCompilerSources/Sources Expand file tree Collapse file tree 4 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,10 @@ option(SWIFT_BUILD_PERF_TESTSUITE
137137 "Create in-tree targets for building swift performance benchmarks."
138138 FALSE )
139139
140+ option (SWIFT_BUILD_REGEX_PARSER_IN_COMPILER
141+ "Build the Swift regex parser as part of the compiler."
142+ TRUE )
143+
140144option (SWIFT_INCLUDE_TESTS "Create targets for building/running tests." TRUE )
141145
142146option (SWIFT_INCLUDE_TEST_BINARIES
Original file line number Diff line number Diff line change 1010
1111add_subdirectory (Basic)
1212add_subdirectory (AST)
13- if (SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING )
13+ if (SWIFT_BUILD_REGEX_PARSER_IN_COMPILER )
1414 add_subdirectory (_RegexParser)
1515endif ()
1616add_subdirectory (SIL)
Original file line number Diff line number Diff line change 88
99set (dependencies)
1010list (APPEND dependencies Basic SIL)
11- if (SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING )
11+ if (SWIFT_BUILD_REGEX_PARSER_IN_COMPILER )
1212 list (APPEND dependencies _CompilerRegexParser)
1313endif ()
1414
Original file line number Diff line number Diff line change @@ -2200,14 +2200,23 @@ for host in "${ALL_HOSTS[@]}"; do
22002200 )
22012201 fi
22022202
2203- if [[ $( true_false " ${SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING} " ) == " TRUE" && \
2204- -d " ${EXPERIMENTAL_STRING_PROCESSING_SOURCE_DIR} " && \
2203+ if [[ -d " ${EXPERIMENTAL_STRING_PROCESSING_SOURCE_DIR} " && \
22052204 -n " $( ls -A " ${EXPERIMENTAL_STRING_PROCESSING_SOURCE_DIR} " ) " ]] ; then
22062205 cmake_options=(
22072206 " ${cmake_options[@]} "
2208- -DSWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING:BOOL=TRUE
22092207 -DEXPERIMENTAL_STRING_PROCESSING_SOURCE_DIR=" ${EXPERIMENTAL_STRING_PROCESSING_SOURCE_DIR} "
22102208 )
2209+ if [[ $( true_false " ${SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING} " ) == " TRUE" ]] ; then
2210+ cmake_options=(
2211+ " ${cmake_options[@]} "
2212+ -DSWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING:BOOL=TRUE
2213+ )
2214+ fi
2215+ else
2216+ cmake_options=(
2217+ " ${cmake_options[@]} "
2218+ -DSWIFT_BUILD_REGEX_PARSER_IN_COMPILER:BOOL=FALSE
2219+ )
22112220 fi
22122221
22132222 if [[ " ${SWIFT_STDLIB_CONCURRENCY_TRACING} " ]] ; then
You can’t perform that action at this time.
0 commit comments