Skip to content

Commit

Permalink
Add needed RUSTFLAGS for supporting Rev A hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Rusak committed Aug 10, 2024
1 parent 23b3e44 commit 1a19974
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
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: 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 1a19974

Please sign in to comment.