File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 10
10
shift || true
11
11
12
12
if [[ " $cmd " = " jit" ]]; then
13
- cargo " +${TOOLCHAIN} " rustc $@ -- --jit
13
+ cargo " +${TOOLCHAIN} " rustc " $@ " -- --jit
14
14
else
15
- cargo " +${TOOLCHAIN} " " $cmd " $@
15
+ cargo " +${TOOLCHAIN} " " $cmd " " $@ "
16
16
fi
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
1
3
set -e
2
4
3
5
unamestr=$( uname)
39
41
export RUSTC_WRAPPER=
40
42
fi
41
43
42
- dir=$( cd $( dirname " $BASH_SOURCE " ) ; pwd)
44
+ dir=$( cd " $( dirname " ${ BASH_SOURCE[0]} " ) " ; pwd)
43
45
44
46
export RUSTC=$dir " /cg_clif"
45
47
export RUSTFLAGS=$linker
@@ -51,7 +53,8 @@ if [[ $(uname) == 'Darwin' ]]; then
51
53
export RUSTFLAGS=" $RUSTFLAGS -Clink-arg=-undefined -Clink-arg=dynamic_lookup"
52
54
fi
53
55
54
- export LD_LIBRARY_PATH=" $dir :$( rustc --print sysroot) /lib:$dir /target/out:$dir /sysroot/lib/rustlib/$TARGET_TRIPLE /lib"
56
+ LD_LIBRARY_PATH=" $dir :$( rustc --print sysroot) /lib:$dir /target/out:$dir /sysroot/lib/rustlib/$TARGET_TRIPLE /lib"
57
+ export LD_LIBRARY_PATH
55
58
export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
56
59
57
60
export CG_CLIF_DISPLAY_CG_TIME=1
Original file line number Diff line number Diff line change 4
4
5
5
source build/config.sh
6
6
export CG_CLIF_INCR_CACHE_DISABLED=1
7
- MY_RUSTC=$RUSTC " " $RUSTFLAGS " -L crate=target/out --out-dir target/out -Cdebuginfo=2"
7
+ MY_RUSTC=" $RUSTC $RUSTFLAGS -L crate=target/out --out-dir target/out -Cdebuginfo=2"
8
8
9
9
function no_sysroot_tests() {
10
10
echo " [BUILD] mini_core"
Original file line number Diff line number Diff line change 3
3
4
4
export RUSTFLAGS=" -Zrun_dsymutil=no"
5
5
6
- ./build.sh --without-sysroot $@
6
+ ./build.sh --without-sysroot " $@ "
7
7
8
8
rm -r target/out || true
9
9
10
10
scripts/tests.sh no_sysroot
11
11
12
- ./build.sh $@
12
+ ./build.sh " $@ "
13
13
14
14
scripts/tests.sh base_sysroot
15
15
scripts/tests.sh extended_sysroot
You can’t perform that action at this time.
0 commit comments