Skip to content

Commit 7a03e8f

Browse files
committed
ASTGen: prevent _StringProcessing from being loaded
When building the ASTGen library, we are building `_StringProcessing`. If the SDK version is loaded, it causes confusion over the local definition and the SDK definition. Avoid the implicit loading of the module.
1 parent 61cb1a9 commit 7a03e8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ASTGen/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ if(SWIFT_BUILD_REGEX_PARSER_IN_COMPILER)
1414
add_pure_swift_host_library(_CompilerRegexParser STATIC
1515
"${COMPILER_REGEX_PARSER_SOURCES}"
1616
)
17+
target_compile_options(_CompilerRegexParser PRIVATE
18+
-disable-implicit-string-processing-module-import)
1719
else()
1820
# Dummy target for dependencies
1921
add_custom_target(_CompilerRegexParser)

0 commit comments

Comments
 (0)