| flags="$flags --no-default-features" |
| flags="$flags --features $1" |
| if [ -f ./gcc_path ]; then |
| export GCC_PATH=$(cat gcc_path) |
| echo 'Please put the path to your custom build of libgccjit in the file `gcc_path`, see Readme.md for details' |
| export LD_LIBRARY_PATH="$GCC_PATH" |
| export LIBRARY_PATH="$GCC_PATH" |
| if [[ "$codegen_channel" == "release" ]]; then |
| CARGO_INCREMENTAL=1 cargo rustc --release $flags |
| mkdir -p target/out/gccjit |
| if [[ "$sysroot_channel" == "release" ]]; then |
| time ./build_sysroot/build_sysroot.sh --release |
| time ./build_sysroot/build_sysroot.sh |