diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-01-31 14:56:10 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-01-31 14:56:10 +0100 |
| commit | 17cffc1757dc6d8a89e2537e90c6cc5b336a66bf (patch) | |
| tree | d84f27c0f1b03e30188126ade481859bb20a5f6c | |
| parent | 0929e379944f3e783092749381f48865b8488875 (diff) | |
| download | rust-17cffc1757dc6d8a89e2537e90c6cc5b336a66bf.tar.gz rust-17cffc1757dc6d8a89e2537e90c6cc5b336a66bf.zip | |
Move some env var definitions around to fix cross-compilation
| -rwxr-xr-x | build.sh | 1 | ||||
| -rwxr-xr-x | build_sysroot/build_sysroot.sh | 1 | ||||
| -rw-r--r-- | scripts/ext_config.sh | 1 | ||||
| -rwxr-xr-x | scripts/tests.sh | 2 | ||||
| -rwxr-xr-x | test.sh | 2 |
5 files changed, 2 insertions, 5 deletions
diff --git a/build.sh b/build.sh index d688d365f16..2f8e0bbc460 100755 --- a/build.sh +++ b/build.sh @@ -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" diff --git a/build_sysroot/build_sysroot.sh b/build_sysroot/build_sysroot.sh index 2785a289d95..282ce4a582c 100755 --- a/build_sysroot/build_sysroot.sh +++ b/build_sysroot/build_sysroot.sh @@ -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")" diff --git a/scripts/ext_config.sh b/scripts/ext_config.sh index eab41631e2b..7971f620df1 100644 --- a/scripts/ext_config.sh +++ b/scripts/ext_config.sh @@ -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} diff --git a/scripts/tests.sh b/scripts/tests.sh index a61774f479e..d37b57babe6 100755 --- a/scripts/tests.sh +++ b/scripts/tests.sh @@ -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() { diff --git a/test.sh b/test.sh index 4f3be076528..97d82c18d97 100755 --- a/test.sh +++ b/test.sh @@ -1,8 +1,6 @@ #!/bin/bash set -e -source scripts/ext_config.sh - ./build.sh --without-sysroot "$@" rm -r target/out || true |
