From 1305ca7267788895709886356184aeb61478156c Mon Sep 17 00:00:00 2001 From: Erin Power Date: Tue, 1 Dec 2020 13:31:59 +0100 Subject: [PATCH] a --- crates/spirv-builder/src/rustc.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/spirv-builder/src/rustc.rs b/crates/spirv-builder/src/rustc.rs index cac8308726..44b2e4717b 100644 --- a/crates/spirv-builder/src/rustc.rs +++ b/crates/spirv-builder/src/rustc.rs @@ -5,7 +5,9 @@ use std::process::Command; use raw_string::{RawStr, RawString}; pub fn cargo() -> Command { - Command::new(std::env::var("CARGO").unwrap_or_else(|_| String::from("cargo"))) + let mut cmd = Command::new(std::env::var("CARGO").unwrap_or_else(|_| String::from("cargo"))); + cmd.env_clear(); + cmd } #[derive(serde::Deserialize)]