6 if [ -f ./gcc_path ]; then
7 export GCC_PATH=$(cat gcc_path)
9 echo 'Please put the path to your custom build of libgccjit in the file `gcc_path`, see Readme.md for details'
13 export LD_LIBRARY_PATH="$GCC_PATH"
14 export LIBRARY_PATH="$GCC_PATH"
16 if [[ "$1" == "--release" ]]; then
17 export CHANNEL='release'
18 CARGO_INCREMENTAL=1 cargo rustc --release
21 export CHANNEL='debug'
27 rm -r target/out || true
28 mkdir -p target/out/gccjit
30 echo "[BUILD] sysroot"
31 time ./build_sysroot/build_sysroot.sh $CHANNEL