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

Add needed RUSTFLAGS for supporting Rev A hardware #409

Merged
merged 2 commits into from
Aug 11, 2024
Merged
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
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
Loading