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
137
137
"Create in-tree targets for building swift performance benchmarks."
138
138
FALSE )
139
139
140
+ option (SWIFT_BUILD_REGEX_PARSER_IN_COMPILER
141
+ "Build the Swift regex parser as part of the compiler."
142
+ TRUE )
143
+
140
144
option (SWIFT_INCLUDE_TESTS "Create targets for building/running tests." TRUE )
141
145
142
146
option (SWIFT_INCLUDE_TEST_BINARIES
Original file line number Diff line number Diff line change 10
10
11
11
add_subdirectory (Basic )
12
12
add_subdirectory (AST )
13
- if (SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING )
13
+ if (SWIFT_BUILD_REGEX_PARSER_IN_COMPILER )
14
14
add_subdirectory (_RegexParser )
15
15
endif ()
16
16
add_subdirectory (SIL )
Original file line number Diff line number Diff line change 8
8
9
9
set (dependencies )
10
10
list (APPEND dependencies Basic SIL )
11
- if (SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING )
11
+ if (SWIFT_BUILD_REGEX_PARSER_IN_COMPILER )
12
12
list (APPEND dependencies _CompilerRegexParser )
13
13
endif ()
14
14
Original file line number Diff line number Diff line change @@ -2200,14 +2200,23 @@ for host in "${ALL_HOSTS[@]}"; do
2200
2200
)
2201
2201
fi
2202
2202
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} " && \
2205
2204
-n " $( ls -A " ${EXPERIMENTAL_STRING_PROCESSING_SOURCE_DIR} " ) " ]] ; then
2206
2205
cmake_options=(
2207
2206
" ${cmake_options[@]} "
2208
- -DSWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING:BOOL=TRUE
2209
2207
-DEXPERIMENTAL_STRING_PROCESSING_SOURCE_DIR=" ${EXPERIMENTAL_STRING_PROCESSING_SOURCE_DIR} "
2210
2208
)
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
+ )
2211
2220
fi
2212
2221
2213
2222
if [[ " ${SWIFT_STDLIB_CONCURRENCY_TRACING} " ]] ; then
You can’t perform that action at this time.
0 commit comments