mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add frontend flag -disable-implicit-string-processing-module-import.
We add a new flag to disable the implicit import of `_StringProcessing`, similar to `-disable-implicit-concurrency-module-import`. We need this to build `_RegexParser` when `-enable-experimental-string-processing` is enabled by default, because `_StringProcessing` currently imports `_RegexParser` publicly (non-implementation-only).
This commit is contained in:
@@ -28,9 +28,16 @@ let package = Package(
|
||||
.target(
|
||||
name: "_RegexParser",
|
||||
dependencies: [],
|
||||
swiftSettings: [SwiftSetting.unsafeFlags([
|
||||
swiftSettings: [
|
||||
.unsafeFlags([
|
||||
"-I", "../include/swift",
|
||||
"-cross-module-optimization"
|
||||
"-cross-module-optimization",
|
||||
]),
|
||||
// Workaround until `_RegexParser` is imported as implementation-only
|
||||
// by `_StringProcessing`.
|
||||
.unsafeFlags([
|
||||
"-Xfrontend",
|
||||
"-disable-implicit-string-processing-module-import"
|
||||
])]),
|
||||
.target(
|
||||
name: "Optimizer",
|
||||
|
||||
Reference in New Issue
Block a user