Move some env var definitions around to fix cross-compilation

This commit is contained in:
bjorn3 2021-01-31 14:56:10 +01:00
parent 0929e37994
commit 17cffc1757
5 changed files with 2 additions and 5 deletions

View File

@ -64,7 +64,6 @@ fi
if [[ "$build_sysroot" == "1" ]]; then
echo "[BUILD] sysroot"
export CG_CLIF_INCR_CACHE_DISABLED=1
dir=$(pwd)
cd "$target_dir"
time "$dir/build_sysroot/build_sysroot.sh"

View File

@ -12,7 +12,6 @@ dir=$(pwd)
# build scripts are still compiled using cg_llvm.
export RUSTC=$dir"/bin/cg_clif_build_sysroot"
export RUSTFLAGS=$RUSTFLAGS" --clif"
export CG_CLIF_DISPLAY_CG_TIME=1
cd "$(dirname "$0")"

View File

@ -5,6 +5,7 @@
set -e
export CG_CLIF_DISPLAY_CG_TIME=1
export CG_CLIF_INCR_CACHE_DISABLED=1
export HOST_TRIPLE=$(rustc -vV | grep host | cut -d: -f2 | tr -d " ")
export TARGET_TRIPLE=${TARGET_TRIPLE:-$HOST_TRIPLE}

View File

@ -3,7 +3,7 @@
set -e
source build/config.sh
export CG_CLIF_INCR_CACHE_DISABLED=1
source scripts/ext_config.sh
MY_RUSTC="$RUSTC $RUSTFLAGS -L crate=target/out --out-dir target/out -Cdebuginfo=2"
function no_sysroot_tests() {

View File

@ -1,8 +1,6 @@
#!/bin/bash
set -e
source scripts/ext_config.sh
./build.sh --without-sysroot "$@"
rm -r target/out || true