This commit is contained in:
2024-02-24 14:44:18 -06:00
committed by GitHub
parent 1487ac83e3
commit ab7f798a4f

View File

@@ -20,9 +20,11 @@ git clone https://github.com/xiph/opus.git "$OPUS_DIR" --depth 1
export ARCH=$(arch) export ARCH=$(arch)
export COMP_FLAGS="" export COMP_FLAGS=""
if [[ "$ARCH" ]] if [[ "$ARCH" == "x86_64" ]]
then then
COMP_FLAGS="-march=native" COMP_FLAGS="-march=native"
elif [[ "$ARCH" == "riscv64" ]]
COMP_FLAGS="-march=rv64"
fi fi
echo "COMP_FLAGS: $COMP_FLAGS" echo "COMP_FLAGS: $COMP_FLAGS"