File tree Expand file tree Collapse file tree 2 files changed +28
-33
lines changed Expand file tree Collapse file tree 2 files changed +28
-33
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
source scripts/config.sh
6
- source scripts/ext_config.sh
6
+
7
+ export CG_CLIF_DISPLAY_CG_TIME=1
8
+ export CG_CLIF_DISABLE_INCR_CACHE=1
9
+
10
+ export HOST_TRIPLE=$( rustc -vV | grep host | cut -d: -f2 | tr -d " " )
11
+ export TARGET_TRIPLE=${TARGET_TRIPLE:- $HOST_TRIPLE }
12
+
13
+ export RUN_WRAPPER=' '
14
+ export JIT_SUPPORTED=1
15
+ if [[ " $HOST_TRIPLE " != " $TARGET_TRIPLE " ]]; then
16
+ export JIT_SUPPORTED=0
17
+ if [[ " $TARGET_TRIPLE " == " aarch64-unknown-linux-gnu" ]]; then
18
+ # We are cross-compiling for aarch64. Use the correct linker and run tests in qemu.
19
+ export RUSTFLAGS=' -Clinker=aarch64-linux-gnu-gcc ' $RUSTFLAGS
20
+ export RUN_WRAPPER=' qemu-aarch64 -L /usr/aarch64-linux-gnu'
21
+ elif [[ " $TARGET_TRIPLE " == " x86_64-pc-windows-gnu" ]]; then
22
+ # We are cross-compiling for Windows. Run tests in wine.
23
+ export RUN_WRAPPER=' wine'
24
+ else
25
+ echo " Unknown non-native platform"
26
+ fi
27
+ fi
28
+
29
+ # FIXME fix `#[linkage = "extern_weak"]` without this
30
+ if [[ " $( uname) " == ' Darwin' ]]; then
31
+ export RUSTFLAGS=" $RUSTFLAGS -Clink-arg=-undefined -Clink-arg=dynamic_lookup"
32
+ fi
33
+
7
34
export RUSTC=false # ensure that cg_llvm isn't accidentally used
8
35
MY_RUSTC=" $( pwd) /build/bin/cg_clif $RUSTFLAGS -L crate=target/out --out-dir target/out -Cdebuginfo=2"
9
36
You can’t perform that action at this time.
0 commit comments