Skip to content

Commit c27d1b8

Browse files
authored
Merge pull request #72333 from tshortli/string-processing-resilient-libraries-flag
CMake: Pass -DRESILIENT_LIBRARIES when building _StringProcessing
2 parents 51c1543 + 4d44bf3 commit c27d1b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stdlib/public/StringProcessing/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ set(swift_string_processing_link_libraries
1515
swift_RegexParser)
1616

1717
set(swift_string_processing_compile_flags)
18+
19+
# Pass a flag to the build indicating that _StringProcessing's dependencies
20+
# will be built with library evolution.
21+
list(APPEND swift_string_processing_compile_flags
22+
"-DRESILIENT_LIBRARIES")
23+
1824
if(SWIFT_BUILD_STATIC_STDLIB)
1925
# Explicitly autolink swift_RegexParser because it's imported with @_implementationOnly
2026
list(APPEND swift_string_processing_compile_flags

0 commit comments

Comments
 (0)