Skip to content

Commit

Permalink
Fix rust cross-build. Again.
Browse files Browse the repository at this point in the history
  • Loading branch information
BtbN committed Sep 12, 2022
1 parent 7bb9176 commit 8bc7936
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts.d/50-rav1e.sh
Expand Up @@ -32,6 +32,16 @@ ffbuild_dockerbuild() {
if [[ -n "$FFBUILD_RUST_TARGET" ]]; then
unset PKG_CONFIG_LIBDIR

export CC="gcc"
export CXX="g++"
export TARGET_CC="${FFBUILD_CROSS_PREFIX}gcc"
export TARGET_CXX="${FFBUILD_CROSS_PREFIX}g++"
export CROSS_COMPILE=1
export TARGET_CFLAGS="$CFLAGS"
export TARGET_CXXFLAGS="$CFLAGS"
unset CFLAGS
unset CXXFLAGS

myconf+=(
--target="$FFBUILD_RUST_TARGET"
)
Expand Down

0 comments on commit 8bc7936

Please sign in to comment.