mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Swift 6 doesn't allow importing executable targets. So we need to move testable logic into a framework.
13 lines
227 B
Swift
13 lines
227 B
Swift
#if os(Linux)
|
|
import Glibc
|
|
#endif
|
|
|
|
package enum ExitHelper {
|
|
package static func successfullyExit() {
|
|
#if os(Linux)
|
|
// Workaround for https://github.com/apple/swift/issues/59961
|
|
Glibc.exit(0)
|
|
#endif
|
|
}
|
|
}
|