Downgrade rav1e to last working version

This commit is contained in:
BtbN 2022-08-16 17:10:37 +02:00
parent 8c1fe93e89
commit 5be16c7672

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
SCRIPT_REPO="https://github.com/xiph/rav1e.git" SCRIPT_REPO="https://github.com/xiph/rav1e.git"
SCRIPT_COMMIT="537b1b91b861210062b1cf105a5bd0243bab0b90" SCRIPT_COMMIT="db7a71ae53a31a60bf31bd0635f46e15bdcc444c"
ffbuild_enabled() { ffbuild_enabled() {
[[ $TARGET == win32 ]] && return -1 [[ $TARGET == win32 ]] && return -1
@ -16,18 +16,38 @@ ffbuild_dockerbuild() {
--prefix="$FFBUILD_PREFIX" \ --prefix="$FFBUILD_PREFIX" \
--library-type=staticlib \ --library-type=staticlib \
--crt-static \ --crt-static \
)
if [[ $TARGET == win_not_yet ]]; then
# CHECKME: back to release once lto is fixed
myconf+=(
--profile release-no-lto
)
else
myconf+=(
--release --release
) )
fi
export CC="${FFBUILD_CROSS_PREFIX}gcc"
export CXX="${FFBUILD_CROSS_PREFIX}g++"
export LD="${FFBUILD_CROSS_PREFIX}gcc"
export AR="${FFBUILD_CROSS_PREFIX}ar"
if [[ -n "$FFBUILD_RUST_TARGET" ]]; then if [[ -n "$FFBUILD_RUST_TARGET" ]]; then
myconf+=( myconf+=(
--target="$FFBUILD_RUST_TARGET" --target="$FFBUILD_RUST_TARGET"
) )
cat <<EOF >$CARGO_HOME/config.toml
[build]
target = "$FFBUILD_RUST_TARGET"
[target.$FFBUILD_RUST_TARGET]
linker = "$LD"
ar = "$AR"
EOF
fi fi
export CC="${FFBUILD_CROSS_PREFIX}gcc" cargo cinstall -v "${myconf[@]}"
cargo cinstall "${myconf[@]}"
} }
ffbuild_configure() { ffbuild_configure() {