Improve error output of wasm-builder when wasm ins't installed (#7105)

This improves the error message of wasm-builder when the wasm toolchain
isn't installed. Currently we print that the wasm toolchain is not
installed, but the actual problem is that there is a bug in the
packaging in rust. This will now be much easier to debug, by printing
the full error message of the compiler.
This commit is contained in:
Bastian Köcher
2020-09-15 11:42:23 +02:00
committed by GitHub
parent 3d94d80309
commit 9dd5812eaf
5 changed files with 46 additions and 12 deletions
@@ -449,7 +449,7 @@ fn build_project(project: &Path, default_rustflags: &str) {
// We don't want to call ourselves recursively
.env(crate::SKIP_BUILD_ENV, "");
if env::var(crate::WASM_BUILD_NO_COLOR).is_err() {
if super::color_output_enabled() {
build_cmd.arg("--color=always");
}