File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
stdlib/public/RegexParser
validation-test/ParseableInterface Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,10 @@ foreach(source ${_MATCHING_ENGINE_SOURCES})
22
22
endforeach ()
23
23
message (STATUS "Using Experimental String Processing library for _RegexParser (${SWIFT_PATH_TO_STRING_PROCESSING_SOURCE} )." )
24
24
25
- set (SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS_NO_RESILIENCE )
26
- string (REGEX REPLACE "-enable-library-evolution" ""
27
- SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS_NO_RESILIENCE
28
- "${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS} " )
29
-
30
- add_swift_target_library (swift_RegexParser ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
25
+ # The parser module can be fragile (does not use library evolution) because its
26
+ # only dependents are _StringProcessing and RegexBuilder and it's version-locked
27
+ # with those modules.
28
+ add_swift_target_library (swift_RegexParser ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB IS_FRAGILE
31
29
"${MATCHING_ENGINE_SOURCES} "
32
30
33
31
SWIFT_MODULE_DEPENDS_LINUX Glibc
@@ -42,7 +40,6 @@ add_swift_target_library(swift_RegexParser ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} I
42
40
C_COMPILE_FLAGS
43
41
-Dswift_RegexParser_EXPORTS
44
42
SWIFT_COMPILE_FLAGS
45
- ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS_NO_RESILIENCE}
46
43
# Workaround until `_RegexParser` is imported as implementation-only
47
44
# by `_StringProcessing`.
48
45
-Xfrontend -disable-implicit-string-processing-module-import
Original file line number Diff line number Diff line change 50
50
]:
51
51
continue
52
52
53
- # Cxx and CxxStdlib are built without library evolution and don't have a
53
+ # These modules are built without library evolution and don't have a
54
54
# .swiftinterface file
55
- if module_name in ["Cxx" , "CxxStdlib" ]:
55
+ if module_name in ["Cxx" , "CxxStdlib" , "_RegexParser" ]:
56
56
if not os .path .exists (interface_file ):
57
57
continue
58
58
You can’t perform that action at this time.
0 commit comments