Skip to content

Commit 5c1d30f

Browse files
committed
Disable async executables on Linux
1 parent abe6d4f commit 5c1d30f

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Examples/count-lines/CountLines.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12+
#if os(macOS)
13+
1214
import ArgumentParser
1315
import Foundation
1416

@@ -76,3 +78,13 @@ extension CountLines {
7678
typealias Command = CountLines
7779
}
7880
#endif
81+
82+
#else
83+
84+
@main enum Main {
85+
static func main() {
86+
print("Unsupported on this platform.")
87+
}
88+
}
89+
90+
#endif

Tools/changelog-authors/ChangelogAuthors.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12+
#if os(macOS)
13+
1214
import ArgumentParser
1315
import Foundation
1416

@@ -107,3 +109,13 @@ struct ChangelogAuthors: AsyncParsableCommand {
107109
typealias Command = ChangelogAuthors
108110
}
109111
#endif
112+
113+
#else
114+
115+
@main enum Main {
116+
static func main() {
117+
print("Unsupported on this platform.")
118+
}
119+
}
120+
121+
#endif

0 commit comments

Comments
 (0)