mirror of
https://github.com/Noratrieb/elven-forest.git
synced 2026-01-14 18:55:01 +01:00
more
This commit is contained in:
parent
fb0b512991
commit
03a4287bee
4 changed files with 228 additions and 31 deletions
|
|
@ -5,4 +5,9 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|||
for rust_file in $SCRIPT_DIR/*.rs; do
|
||||
# Use -Cprefer-dynamic to keep the binary small
|
||||
rustc --edition 2021 "$rust_file" -Cprefer-dynamic -Copt-level=3 --out-dir="$SCRIPT_DIR/out"
|
||||
done
|
||||
done
|
||||
|
||||
for c_obj_file in $SCRIPT_DIR/*_obj.c; do
|
||||
echo $c_obj_file
|
||||
cc "$c_obj_file" -c -o "$SCRIPT_DIR/out/$(basename $c_obj_file .c)"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue