Skip to content

Commit ccf5799

Browse files
Use cargo to build the build system binary
1 parent e39f3a2 commit ccf5799

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

y.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

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

0 commit comments

Comments
 (0)