Skip to content

Commit

Permalink
hifiasm: add linux-aarch64 build (#47516)
Browse files Browse the repository at this point in the history
* hifiasm: add linux-aarch64 build

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Apply chhylp123/hifiasm#641 as a patch until it is merged upstream

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

---------

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g authored and daler committed May 14, 2024
1 parent ac0a0c3 commit 9a40d5d
Show file tree
Hide file tree
Showing 3 changed files with 9,379 additions and 2 deletions.
11 changes: 10 additions & 1 deletion recipes/hifiasm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

mkdir -p $PREFIX/bin

ARCH_OPTS=""
case $(uname -m) in
x86_64)
ARCH_OPTS="-msse4.2 -mpopcnt"
;;
*)
;;
esac

sed -i.bak 's/CXXFLAGS=.*//' Makefile
make INCLUDES="-I$PREFIX/include" CXXFLAGS="-L$PREFIX/lib -g -O3 -msse4.2 -mpopcnt -fomit-frame-pointer -Wall" CC=${CC} CXX=${CXX}
make INCLUDES="-I$PREFIX/include" CXXFLAGS="-L$PREFIX/lib -g -O3 ${ARCH_OPTS} -fomit-frame-pointer -Wall" CC=${CC} CXX=${CXX}
cp hifiasm $PREFIX/bin
Loading

0 comments on commit 9a40d5d

Please sign in to comment.