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 3ba69de commit 37e0613Copy full SHA for 37e0613
protobuf/build.rs
@@ -19,8 +19,15 @@ fn version_is_nightly(version: &str) -> bool {
19
20
fn cfg_rust_version() {
21
let rustc = env::var("RUSTC").expect("RUSTC unset");
22
+ let mut cmd = if let Some(wrapper) = env::var_os("RUSTC_WRAPPER").filter(|w| !w.is_empty()) {
23
+ let mut cmd = process::Command::new(wrapper);
24
+ cmd.arg(rustc);
25
+ cmd
26
+ } else {
27
+ process::Command::new(rustc)
28
+ };
29
- let mut child = process::Command::new(rustc)
30
+ let mut child = cmd
31
.args(&["--version"])
32
.stdin(process::Stdio::null())
33
.stdout(process::Stdio::piped())
0 commit comments