Use cargo to build the build system binary

This commit is contained in:
Guillaume Gomez 2023-09-25 17:04:44 +02:00
parent e39f3a2484
commit ccf5799782

7
y.sh
View file

@ -2,6 +2,7 @@
set -e
echo "[BUILD] build system" 1>&2
mkdir -p build_system/target
rustc build_system/src/main.rs -o build_system/target/y -Cdebuginfo=1 --edition 2021
exec ./build_system/target/y "$@"
cd build_system
cargo build --release
cd ..
./build_system/target/release/y $@