Skip to content

Commit

Permalink
Run nightly cargo through rustup in WASM builder (#1301)
Browse files Browse the repository at this point in the history
  • Loading branch information
ark0f authored Aug 9, 2022
1 parent c1b8cda commit f7229d1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions utils/wasm-builder/src/cargo_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@ impl CargoCommand {
/// Create a new `CargoCommand`.
pub fn new() -> Self {
CargoCommand {
path: "cargo".to_string(),
path: "rustup".to_string(),
manifest_path: "Cargo.toml".into(),
args: vec!["+nightly", "rustc", "--target=wasm32-unknown-unknown"],
args: vec![
"run",
"nightly",
"cargo",
"rustc",
"--target=wasm32-unknown-unknown",
],
profile: "dev".to_string(),
rustc_flags: vec!["-C", "link-arg=--import-memory", "-C", "linker-plugin-lto"],
target_dir: "target".into(),
Expand Down

0 comments on commit f7229d1

Please sign in to comment.