We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--sysroot
1 parent a37446b commit 1075b80Copy full SHA for 1075b80
config.sh
@@ -54,6 +54,10 @@ if [[ -z "$BUILTIN_BACKEND" ]]; then
54
export RUSTFLAGS="$CG_RUSTFLAGS $linker -Csymbol-mangling-version=v0 -Cdebuginfo=2 $disable_lto_flags -Zcodegen-backend=$(pwd)/target/${CHANNEL:-debug}/librustc_codegen_gcc.$dylib_ext --sysroot $(pwd)/build_sysroot/sysroot $TEST_FLAGS"
55
else
56
export RUSTFLAGS="$CG_RUSTFLAGS $linker -Csymbol-mangling-version=v0 -Cdebuginfo=2 $disable_lto_flags -Zcodegen-backend=gcc $TEST_FLAGS -Cpanic=abort"
57
+
58
+ if [[ ! -z "$RUSTC_SYSROOT" ]]; then
59
+ export RUSTFLAGS="$RUSTFLAGS --sysroot $RUSTC_SYSROOT"
60
+ fi
61
fi
62
63
# FIXME(antoyo): remove once the atomic shim is gone
0 commit comments