Skip to content

Commit 53b811a

Browse files
committed
fix isMacOS detection in BasicRuntimeTests
1 parent 7f93a62 commit 53b811a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Tests/JavaKitTests/BasicRuntimeTests.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,12 @@ var isLinux: Bool {
8585
return false
8686
#endif
8787
}
88+
89+
/// Whether we're running on MacOS.
90+
var isMacOS: Bool {
91+
#if os(macOS)
92+
return true
93+
#else
94+
return false
95+
#endif
96+
}

0 commit comments

Comments
 (0)