Skip to content

Commit ca9c40d

Browse files
committed
Implement __isOSVersionAtLeast and __isPlatformVersionAtLeast
1 parent 6e91b03 commit ca9c40d

File tree

5 files changed

+841
-1
lines changed

5 files changed

+841
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ These builtins are needed to support 128-bit integers.
178178
- [x] udivmodti4.c
179179
- [x] udivti3.c
180180
- [x] umodti3.c
181+
- [ ] os_version_check.c
182+
- [x] `__isOSVersionAtLeast` (Darwin)
183+
- [x] `__isPlatformVersionAtLeast` (Darwin)
184+
- [ ] `__isPlatformOrVariantPlatformVersionAtLeast` (macOS)
185+
- [ ] `__isOSVersionAtLeast` (Android)
181186

182187
These builtins are needed to support `f16` and `f128`, which are in the process
183188
of being added to Rust.
@@ -410,7 +415,6 @@ Miscellaneous functionality that is not used by Rust.
410415
- ~~i386/fp_mode.c~~
411416
- ~~int_util.c~~
412417
- ~~loongarch/fp_mode.c~~
413-
- ~~os_version_check.c~~
414418
- ~~riscv/fp_mode.c~~
415419
- ~~riscv/restore.S~~ (callee-saved registers)
416420
- ~~riscv/save.S~~ (callee-saved registers)

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pub mod float;
4343
pub mod int;
4444
pub mod math;
4545
pub mod mem;
46+
pub mod os_version_check;
4647

4748
// `libm` expects its `support` module to be available in the crate root. This config can be
4849
// cleaned up once `libm` is made always available.

0 commit comments

Comments
 (0)