Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
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
Prev Previous commit
Update utils/wasm-builder/src/prerequisites.rs
  • Loading branch information
bkchr authored Oct 4, 2021
commit 657e3550049303f98ab9c835f95fc371a05a4401
8 changes: 4 additions & 4 deletions utils/wasm-builder/src/prerequisites.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ fn check_wasm_toolchain_installed(

// Make sure the host's flags aren't used here, e.g. if an alternative linker is specified
// in the RUSTFLAGS then the check we do here will break unless we clear these.
build_cmd.env("CARGO_ENCODED_RUSTFLAGS", "");
run_cmd.env("CARGO_ENCODED_RUSTFLAGS", "");
build_cmd.env("RUSTFLAGS", "");
run_cmd.env("RUSTFLAGS", "");
build_cmd.env_remove("CARGO_ENCODED_RUSTFLAGS");
run_cmd.env_remove("CARGO_ENCODED_RUSTFLAGS");
build_cmd.env_remove("RUSTFLAGS");
run_cmd.env_remove("RUSTFLAGS");

build_cmd.output().map_err(|_| err_msg.clone()).and_then(|s| {
if s.status.success() {
Expand Down