elven-forest/test_data/create_test_data.sh
2023-02-11 18:33:34 +01:00

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