Skip to content

Commit

Permalink
Merge pull request #37 from catt-io/main
Browse files Browse the repository at this point in the history
Removed need for `-Z build-std`
  • Loading branch information
rtsuk authored Mar 15, 2023
2 parents 61e2569 + c09c63b commit 7bea34b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ The Playdate SDK installed in `$HOME/Developer/PlaydateSDK`.

Rust, easiest installed via [rustup](https://rustup.rs)

Rust toolchains __nightly__ needed for [build-std][] feature, installed with `rustup install nightly && rustup component add rust-src --toolchain nightly`, if you want to build for the Playdate device rather than the simulator.
Rust toolchain __nightly__ needed for the unstable `aloc` feature, installed with `rustup install nightly`.

[build-std]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#build-std
If you want want to build for the Playdate device, you will need the `thumbv7em-none-eabihf` target. Added with `rustup target add thumbv7em-none-eabihf`

All of the requirements listed in [Inside Playdate with C](https://sdk.play.date/inside-playdate-with-c#_prerequisites).

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ impl Build {
let current_dir = std::env::current_dir()?;
let manifest_path_str;
let mut args = if self.device {
vec!["+nightly", "build", "-Z", "build-std"]
vec!["+nightly", "build"]
} else {
vec!["build"]
};
Expand Down

0 comments on commit 7bea34b

Please sign in to comment.