From 77317b50c832032ff18b2fe22747b09a84a70656 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 10 Aug 2022 16:29:52 -0700 Subject: [PATCH] Work around RA's RUSTC_WRAPPER poisoning all subsequent command-line builds --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index c470ba1..3986c05 100644 --- a/build.rs +++ b/build.rs @@ -65,6 +65,8 @@ fn main() { } fn compile_probe() -> Option { + println!("cargo:rerun-if-env-changed=RUSTC_WRAPPER"); + let rustc = env::var_os("RUSTC")?; let out_dir = env::var_os("OUT_DIR")?; let probefile = Path::new(&out_dir).join("probe.rs");