We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67c4300 commit 93e0783Copy full SHA for 93e0783
build.rs
@@ -196,8 +196,17 @@ fn rustc_minor_nightly() -> (u32, bool) {
196
};
197
}
198
199
- let rustc = otry!(env::var_os("RUSTC"));
200
- let output = Command::new(rustc)
+ let rustc = env::var_os("RUSTC").expect("Failed to get rustc version: missing RUSTC env");
+ let mut cmd = match env::var_os("RUSTC_WRAPPER") {
201
+ Some(wrapper) if !wrapper.is_empty() => {
202
+ let mut cmd = Command::new(wrapper);
203
+ cmd.arg(rustc);
204
+ cmd
205
+ }
206
+ _ => Command::new(rustc),
207
+ };
208
+
209
+ let output = cmd
210
.arg("--version")
211
.output()
212
.ok()
0 commit comments