We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d37432d + 0d0d23f commit 499f1a0Copy full SHA for 499f1a0
scripts/rust-is-available.sh
@@ -146,7 +146,7 @@ fi
146
#
147
# `$KRUSTFLAGS` is passed in case the user added `--sysroot`.
148
rustc_sysroot=$("$RUSTC" $KRUSTFLAGS --print sysroot)
149
-rustc_src="$rustc_sysroot/lib/rustlib/src/rust/library"
+rustc_src=${RUST_LIB_SRC:-"$rustc_sysroot/lib/rustlib/src/rust/library"}
150
rustc_src_core="$rustc_src/core/src/lib.rs"
151
if [ ! -e "$rustc_src_core" ]; then
152
if [ "$1" = -v ]; then
0 commit comments