Skip to content

Commit

Permalink
Merge pull request #409 from jder/support-reva
Browse files Browse the repository at this point in the history
Disable `f64` target-feature for supporting Rev A hardware
  • Loading branch information
boozook authored Aug 11, 2024
2 parents 23b3e44 + 4dffd64 commit 8c04f8a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "playdate-sys"
version = "0.4.3"
version = "0.4.4"
build = "src/build.rs"
readme = "README.md"
description = "Low-level Playdate API bindings"
Expand Down
1 change: 1 addition & 0 deletions api/sys/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ unsafe extern "C" fn on_update(_: *mut c_void) -> i32 { 1 /* `1` means "OK, cont
[target.thumbv7em-none-eabihf]
rustflags = [
"-Ctarget-cpu=cortex-m7",
"-Ctarget-feature=-fp64",
"-Clink-args=--emit-relocs",
"-Crelocation-model=pic",
"-Csoft-float=no",
Expand Down
1 change: 1 addition & 0 deletions cargo/tests/crates/simple/with-cfg/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ rustflags = ["-C", "target-cpu=native"]
[target.thumbv7em-none-eabihf]
rustflags = [
"-Ctarget-cpu=cortex-m7",
"-Ctarget-feature=-fp64",
"-Clink-args=--emit-relocs",
"-Crelocation-model=pic",
"-Csoft-float=no",
Expand Down
2 changes: 1 addition & 1 deletion support/utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "playdate-build-utils"
version = "0.3.4"
version = "0.3.5"
readme = "README.md"
description = "Utils that help to build program with Rust and Playdate API"
keywords = ["playdate", "utility"]
Expand Down
2 changes: 2 additions & 0 deletions support/utils/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub const GCC_ARGS_LIB: &[&str] = &["-nostartfiles",

pub const RUSTFLAGS_LIB_HOST: &[&str] = &["-Ctarget-cpu=native"];
pub const RUSTFLAGS_LIB_PLAYDATE: &[&str] = &["-Ctarget-cpu=cortex-m7",
"-Ctarget-feature=-fp64",
"-Clink-args=--emit-relocs",
"-Crelocation-model=pic",
"-Csoft-float=no",
Expand All @@ -32,6 +33,7 @@ pub const RUSTFLAGS_LIB_PLAYDATE: &[&str] = &["-Ctarget-cpu=cortex-m7",
/// - `-Clink-arg=-T...link_map.ld`
/// - `-L{libs-search-paths}`
pub const RUSTFLAGS_BIN_PLAYDATE: &[&str] = &["-Ctarget-cpu=cortex-m7",
"-Ctarget-feature=-fp64",
"-Clink-args=--emit-relocs",
"-Crelocation-model=pic",
"-Csoft-float=no",
Expand Down

0 comments on commit 8c04f8a

Please sign in to comment.