Use cargo to build the build system binary
This commit is contained in:
parent
e39f3a2484
commit
ccf5799782
1 changed files with 4 additions and 3 deletions
7
y.sh
7
y.sh
|
@ -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 $@
|
||||
|
|
Loading…
Add table
Reference in a new issue