diff --git a/Sources/CartonCore/Environment.swift b/Sources/CartonCore/Environment.swift index 4c1d5fb2..e29249f7 100644 --- a/Sources/CartonCore/Environment.swift +++ b/Sources/CartonCore/Environment.swift @@ -63,7 +63,7 @@ public enum Environment: String, CaseIterable { // for future dynamic linking support. parameters.otherSwiftcFlags += ["-static-stdlib"] - #if compiler(>=6.0) + #if compiler(>=6.0) && compiler(<6.1) // A workaround for the linker issue. // https://github.com/swiftwasm/swift/issues/5580 parameters.otherLinkerFlags += ["-lswift_RegexParser"]