From ab7f798a4f0f899cf97919ea721128ae1159e244 Mon Sep 17 00:00:00 2001 From: Levon Gevorgyan Date: Sat, 24 Feb 2024 14:44:18 -0600 Subject: [PATCH] oops --- scripts/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index e43f0fc..257c2c7 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -20,9 +20,11 @@ git clone https://github.com/xiph/opus.git "$OPUS_DIR" --depth 1 export ARCH=$(arch) export COMP_FLAGS="" -if [[ "$ARCH" ]] +if [[ "$ARCH" == "x86_64" ]] then COMP_FLAGS="-march=native" +elif [[ "$ARCH" == "riscv64" ]] + COMP_FLAGS="-march=rv64" fi echo "COMP_FLAGS: $COMP_FLAGS"