Skip to content

Commit 243db36

Browse files
authored
Merge pull request #3 from mrubyedge/fix-double-define-FP_
Remove duplicate blocklist_item entries for FP_ constants in build.rs
2 parents 7f8035c + bdb084b commit 243db36

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- name: Build
2020
run: cargo build --verbose
21+
- name: Build (no-std)
22+
run: cargo build --features no-std --no-default-features --verbose

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mruby-compiler2-sys"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2024"
55
authors = ["Uchio Kondo <udzura@udzura.jp>", "Hitoshi Hasumi", "prism developers"]
66
description = "mruby-compiler2 bindings for Rust"

build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ fn main() {
3434
.header("./vendor/mruby-compiler2/include/mrc_codedump.h")
3535
.clang_arg("-I./vendor/mruby-compiler2/include")
3636
.clang_arg("-I./vendor/mruby-compiler2/lib/prism/include")
37+
.blocklist_item("FP_NAN")
38+
.blocklist_item("FP_INFINITE")
39+
.blocklist_item("FP_ZERO")
40+
.blocklist_item("FP_SUBNORMAL")
41+
.blocklist_item("FP_NORMAL")
3742
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
3843
.generate()
3944
.expect("Unable to generate bindings");

src/bindings.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -807,11 +807,6 @@ pub const __AVAILABILITY_VERSIONS_VERSION_STRING: &[u8; 6] = b"Local\0";
807807
pub const __AVAILABILITY_FILE: &[u8; 23] = b"AvailabilityVersions.h\0";
808808
pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 260100;
809809
pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1;
810-
pub const FP_NAN: u32 = 1;
811-
pub const FP_INFINITE: u32 = 2;
812-
pub const FP_ZERO: u32 = 3;
813-
pub const FP_NORMAL: u32 = 4;
814-
pub const FP_SUBNORMAL: u32 = 5;
815810
pub const FP_SUPERNORMAL: u32 = 6;
816811
pub const FP_FAST_FMA: u32 = 1;
817812
pub const FP_FAST_FMAF: u32 = 1;

0 commit comments

Comments
 (0)