We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6eddffb commit c7c4c02Copy full SHA for c7c4c02
build.rs
@@ -120,8 +120,16 @@ fn rustc_minor_nightly() -> (u32, bool) {
120
};
121
}
122
123
- let rustc = otry!(env::var_os("RUSTC"));
124
- let output = Command::new(rustc)
+ let rustc = env::var_os("RUSTC").expect("Failed to get rustc version: missing RUSTC env");
+ let mut cmd = if let Some(wrapper) = env::var_os("RUSTC_WRAPPER").filter(|w| !w.is_empty()) {
125
+ let mut cmd = Command::new(wrapper);
126
+ cmd.arg(rustc);
127
+ cmd
128
+ } else {
129
+ Command::new(rustc)
130
+ };
131
+
132
+ let output = cmd
133
.arg("--version")
134
.output()
135
.ok()
0 commit comments