Skip to content

Commit 1075b80

Browse files
Pass --sysroot option
1 parent a37446b commit 1075b80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: config.sh

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ if [[ -z "$BUILTIN_BACKEND" ]]; then
5454
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"
5555
else
5656
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
5761
fi
5862

5963
# FIXME(antoyo): remove once the atomic shim is gone

0 commit comments

Comments
 (0)