From 7a03e8ffc8d2ced9aa4d552f4e679d80083ff93b Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 4 Sep 2025 09:58:53 -0700 Subject: [PATCH] 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. --- lib/ASTGen/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ASTGen/CMakeLists.txt b/lib/ASTGen/CMakeLists.txt index 46d88fef49174..9f6e76a4bee34 100644 --- a/lib/ASTGen/CMakeLists.txt +++ b/lib/ASTGen/CMakeLists.txt @@ -14,6 +14,8 @@ if(SWIFT_BUILD_REGEX_PARSER_IN_COMPILER) add_pure_swift_host_library(_CompilerRegexParser STATIC "${COMPILER_REGEX_PARSER_SOURCES}" ) + target_compile_options(_CompilerRegexParser PRIVATE + -disable-implicit-string-processing-module-import) else() # Dummy target for dependencies add_custom_target(_CompilerRegexParser)