Move RUSTDOCFLAGS to config.sh

This commit is contained in:
bjorn3 2020-07-13 11:45:16 +02:00
parent cc8744c004
commit d983813e0f
2 changed files with 2 additions and 1 deletions

View File

@ -20,4 +20,4 @@ fi
cmd=$1
shift
RUSTDOCFLAGS=$RUSTFLAGS cargo +${TOOLCHAIN} $cmd --target $TARGET_TRIPLE $@
cargo +${TOOLCHAIN} $cmd --target $TARGET_TRIPLE $@

View File

@ -31,6 +31,7 @@ if [[ "$HOST_TRIPLE" != "$TARGET_TRIPLE" ]]; then
fi
export RUSTFLAGS=$linker' -Cpanic=abort -Cdebuginfo=2 -Zpanic-abort-tests -Zcodegen-backend='$(pwd)'/target/'$CHANNEL'/librustc_codegen_cranelift.'$dylib_ext' --sysroot '$(pwd)'/build_sysroot/sysroot'
export RUSTDOCFLAGS=$RUSTFLAGS
# FIXME remove once the atomic shim is gone
if [[ `uname` == 'Darwin' ]]; then