File tree Expand file tree Collapse file tree 7 files changed +10
-6
lines changed Expand file tree Collapse file tree 7 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 6
6
cd $( dirname " $0 " )
7
7
8
8
pushd ../ > /dev/null
9
- source ./config.sh
9
+ source ./scripts/ config.sh
10
10
popd > /dev/null
11
11
12
12
# Cleanup for previous run
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export CHANNEL='release'
5
5
fi
6
6
7
7
pushd $( dirname " $0 " ) > /dev/null
8
- source config.sh
8
+ source scripts/ config.sh
9
9
10
10
# read nightly compiler from rust-toolchain file
11
11
TOOLCHAIN=$( cat rust-toolchain)
Original file line number Diff line number Diff line change
1
+ This directory is for scripts that are either never directly invoked or are not used very often.
2
+ Scripts that are frequently used should be kept at the project root.
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ if [[ `uname` == 'Darwin' ]]; then
38
38
export RUSTFLAGS=" $RUSTFLAGS -Clink-arg=-undefined -Clink-arg=dynamic_lookup"
39
39
fi
40
40
41
- RUSTC=" rustc $RUSTFLAGS -L crate=target/out --out-dir target/out"
42
41
export RUSTC_LOG=warn # display metadata load errors
43
42
44
43
export LD_LIBRARY_PATH=" $( pwd) /target/out:$( pwd) /build_sysroot/sysroot/lib/rustlib/$TARGET_TRIPLE /lib"
Original file line number Diff line number Diff line change 2
2
#! [forbid(unsafe_code)]/* This line is ignored by bash
3
3
# This block is ignored by rustc
4
4
CHANNEL=" release"
5
- source ./config.sh
6
- CG_CLIF_JIT=1 PROFILE=$1 OUTPUT=$2 exec $RUSTC $0 --crate-type bin -Cprefer-dynamic
5
+ pushd $( dirname " $0 " ) /../
6
+ source scripts/config.sh
7
+ popd
8
+ CG_CLIF_JIT=1 PROFILE=$1 OUTPUT=$2 exec rustc $RUSTFLAGS $0 --crate-type bin -Cprefer-dynamic
7
9
# */
8
10
9
11
//! This program filters away uninteresting samples and trims uninteresting frames for stackcollapse
File renamed without changes.
Original file line number Diff line number Diff line change 11
11
fi
12
12
13
13
# Config
14
- source config.sh
14
+ source scripts/ config.sh
15
15
export CG_CLIF_INCR_CACHE_DISABLED=1
16
+ RUSTC=" rustc $RUSTFLAGS -L crate=target/out --out-dir target/out"
16
17
17
18
# Cleanup
18
19
rm -r target/out || true
You can’t perform that action at this time.
0 commit comments