Skip to content
Snippets Groups Projects
Commit af357cad authored by Luc Trudeau's avatar Luc Trudeau Committed by Raphaël Zumer
Browse files

build.sh defaults to debug

For a release build use build.sh --release
parent 224e451c
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,16 @@ set -e
#SEQ=!!!!! ENTER YOUR FAVORITE Y4M HERE !!!!!
IS_RELEASE=0
for arg in "$@"; do
shift
case "$arg" in
"--release") IS_RELEASE=1 ;;
*) set -- "$@" "$arg"
esac
done
if [[ -z "${SEQ}" ]]; then
SEQ=nyan.y4m
SEQ10=nyan10.y4m
......@@ -75,7 +85,12 @@ DEC_FILE="dec_file.y4m"
export RUST_BACKTRACE=1
# Build and run encoder
cargo run --bin rav1e --release -- $SEQ -o $ENC_FILE -s 3 -r $REC_FILE
BUILD_TYPE=""
if [ $IS_RELEASE == 1 ]; then
BUILD_TYPE="--release"
fi
cargo run --bin rav1e $BUILD_TYPE -- $SEQ -o $ENC_FILE -s 3 -r $REC_FILE
# Decode
${AOM_TEST}/aomdec $ENC_FILE -o $DEC_FILE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment