Skip to content

Commit

Permalink
get rid of xbuild, use nightly build-std builtin feature
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook committed Mar 17, 2022
1 parent e8635c6 commit fb42a3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ The Playdate SDK installed in `$HOME/Developer/PlaydateSDK`.

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

[cargo-xbuild](https://github.com/rust-osdev/cargo-xbuild), installed with `cargo install cargo-xbuild`, if you want to build for the Playdate device rather than the simulator.
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.

[build-std]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#build-std

## Installation

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

0 comments on commit fb42a3b

Please sign in to comment.