about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2023-09-25 17:04:44 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2023-09-25 17:04:44 +0200
commitccf57997826581da83eff3a29cadc1c9fb728875 (patch)
tree925afb7b9682aa7a9488b798503b04b066d2c93f
parente39f3a24847ecea0542c8a3b9c776913c6e7be83 (diff)
downloadrust-ccf57997826581da83eff3a29cadc1c9fb728875.tar.gz
rust-ccf57997826581da83eff3a29cadc1c9fb728875.zip
Use cargo to build the build system binary
-rwxr-xr-xy.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/y.sh b/y.sh
index 481b909c92a..188109743e3 100755
--- a/y.sh
+++ b/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 $@