Skip to content

Commit f70b7be

Browse files
committed
Add a comment.
1 parent d2d93e0 commit f70b7be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ fn can_compile<T: AsRef<str>>(test: T) -> bool {
240240
let rustc = var("RUSTC").unwrap();
241241
let target = var("TARGET").unwrap();
242242

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

0 commit comments

Comments
 (0)