Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement __isPlatformVersionAtLeast and __isOSVersionAtLeast #794

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ These builtins are needed to support 128-bit integers.
- [x] udivmodti4.c
- [x] udivti3.c
- [x] umodti3.c
- [ ] os_version_check.c
- [x] `__isOSVersionAtLeast` (Darwin)
- [x] `__isPlatformVersionAtLeast` (Darwin)
- [ ] `__isPlatformOrVariantPlatformVersionAtLeast` (macOS)
- [ ] `__isOSVersionAtLeast` (Android)

These builtins are needed to support `f16` and `f128`, which are in the process
of being added to Rust.
Expand Down Expand Up @@ -410,7 +415,6 @@ Miscellaneous functionality that is not used by Rust.
- ~~i386/fp_mode.c~~
- ~~int_util.c~~
- ~~loongarch/fp_mode.c~~
- ~~os_version_check.c~~
- ~~riscv/fp_mode.c~~
- ~~riscv/restore.S~~ (callee-saved registers)
- ~~riscv/save.S~~ (callee-saved registers)
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub mod float;
pub mod int;
pub mod math;
pub mod mem;
pub mod os_version_check;

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