Skip to content

Commit db188af

Browse files
committed
ci: disable libaom RVV optimizations for riscv64
libaom's riscv64 RVV code (highbd_convolve_rvv.c) calls functions without declarations; GCC 14 in manylinux_2_39 treats this as an error. Pass -DAOM_TARGET_CPU=generic for riscv64 to skip the arch-specific code. QEMU-based builds don't benefit from RVV optimizations anyway. Signed-off-by: Bruno Verachten <gounthar@gmail.com>
1 parent ec1c53d commit db188af

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/wheels-dependencies.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ function build_libavif {
204204
-DAVIF_CODEC_DAV1D=LOCAL
205205
)
206206
fi
207+
# libaom's riscv64 RVV code calls functions without declarations, which
208+
# GCC 14 (manylinux_2_39) treats as errors. Disable arch-specific AOM
209+
# optimizations for riscv64; QEMU-based builds don't benefit from them.
210+
if [[ "$(uname -m)" == "riscv64" ]]; then
211+
libavif_cmake_flags+=(-DAOM_TARGET_CPU=generic)
212+
fi
207213

208214
local out_dir=$(fetch_unpack https://github.com/AOMediaCodec/libavif/archive/refs/tags/v$LIBAVIF_VERSION.tar.gz libavif-$LIBAVIF_VERSION.tar.gz)
209215

0 commit comments

Comments
 (0)