File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: dceb4041b18c47764c6dbdf00ce49090eb048608
2
+ refs/heads/master: c266abc65673816e5936e979af7233f382e2defb
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ public func _stdlib_isOSVersionAtLeast(
25
25
_ patch: Builtin . Word
26
26
) -> Builtin . Int1 {
27
27
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
28
+ if Int ( major) == 9999 {
29
+ return true . _value
30
+ }
28
31
// The call to _swift_stdlib_operatingSystemVersion is used as an indicator
29
32
// that this function was called by a compiler optimization pass. If it is
30
33
// replaced that pass needs to be updated.
Original file line number Diff line number Diff line change @@ -766,6 +766,9 @@ AvailabilityVersionsTestSuite.test("_stdlib_isOSVersionAtLeast") {
766
766
expectFalse(isAtLeastOS(1066, 0, 0))
767
767
expectTrue(isAtLeastOS(0, 1066, 0))
768
768
expectTrue(isAtLeastOS(0, 0, 1066))
769
+
770
+ // 9999 is a special version that's always available
771
+ expectTrue(isAtLeastOS(9999, 0, 0))
769
772
#endif
770
773
}
771
774
You can’t perform that action at this time.
0 commit comments