Skip to content

Commit

Permalink
Fix default args for cpu features.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Hosseini committed Sep 20, 2019
1 parent 86adbd5 commit abdc114
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion acinclude/ax_check_cpu.m4
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ AC_MSG_CHECKING([for cpu arch])
case $target in
amd64-* | x86_64-*)
ARCH_CPUFLAGS="-mpopcnt -msse4"
ARCH_CXXFLAGS="-m64";;
ARCH_CXXFLAGS="-m64"
;;
aarch64*-*)
dnl This is an arch for Nvidia Xavier a proper detection would be nice.
ARCH_CPUFLAGS="-march=armv8.2-a"
;;
*) ;;
esac
Expand Down
6 changes: 5 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -6816,7 +6816,11 @@ $as_echo_n "checking for cpu arch... " >&6; }
case $target in
amd64-* | x86_64-*)
ARCH_CPUFLAGS="-mpopcnt -msse4"
ARCH_CXXFLAGS="-m64";;
ARCH_CXXFLAGS="-m64"
;;
aarch64*-*)
ARCH_CPUFLAGS="-march=armv8.2-a"
;;
*) ;;
esac

Expand Down

0 comments on commit abdc114

Please sign in to comment.