Skip to content

Commit 17cffc1

Browse files
committed
Move some env var definitions around to fix cross-compilation
1 parent 0929e37 commit 17cffc1

File tree

5 files changed

+2
-5
lines changed

5 files changed

+2
-5
lines changed

build.sh

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ fi
6464

6565
if [[ "$build_sysroot" == "1" ]]; then
6666
echo "[BUILD] sysroot"
67-
export CG_CLIF_INCR_CACHE_DISABLED=1
6867
dir=$(pwd)
6968
cd "$target_dir"
7069
time "$dir/build_sysroot/build_sysroot.sh"

build_sysroot/build_sysroot.sh

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ dir=$(pwd)
1212
# build scripts are still compiled using cg_llvm.
1313
export RUSTC=$dir"/bin/cg_clif_build_sysroot"
1414
export RUSTFLAGS=$RUSTFLAGS" --clif"
15-
export CG_CLIF_DISPLAY_CG_TIME=1
1615

1716
cd "$(dirname "$0")"
1817

scripts/ext_config.sh

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
set -e
66

77
export CG_CLIF_DISPLAY_CG_TIME=1
8+
export CG_CLIF_INCR_CACHE_DISABLED=1
89

910
export HOST_TRIPLE=$(rustc -vV | grep host | cut -d: -f2 | tr -d " ")
1011
export TARGET_TRIPLE=${TARGET_TRIPLE:-$HOST_TRIPLE}

scripts/tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
source build/config.sh
6-
export CG_CLIF_INCR_CACHE_DISABLED=1
6+
source scripts/ext_config.sh
77
MY_RUSTC="$RUSTC $RUSTFLAGS -L crate=target/out --out-dir target/out -Cdebuginfo=2"
88

99
function no_sysroot_tests() {

test.sh

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash
22
set -e
33

4-
source scripts/ext_config.sh
5-
64
./build.sh --without-sysroot "$@"
75

86
rm -r target/out || true

0 commit comments

Comments
 (0)