mirror of
https://github.com/Noratrieb/elven-forest.git
synced 2026-01-14 18:55:01 +01:00
8 lines
No EOL
293 B
Bash
Executable file
8 lines
No EOL
293 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
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 |