Skip to content

Commit 6a0d1b6

Browse files
committed
Add a comment.
1 parent 8e12b4f commit 6a0d1b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.rs

+3
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ fn can_compile<T: AsRef<str>>(test: T) -> bool {
199199
let rustc = var("RUSTC").unwrap();
200200
let target = var("TARGET").unwrap();
201201

202+
// Use `RUSTC_WRAPPER` if it's set, unless it's set to an empty string,
203+
// as documented [here].
204+
// [here]: https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-reads
202205
let wrapper = var("RUSTC_WRAPPER")
203206
.ok()
204207
.and_then(|w| if w.is_empty() { None } else { Some(w) });

0 commit comments

Comments
 (0)