0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-17 09:28:21 +02:00

configure: Fix CXXFLAG for clang on aarch64. (#132)

This commit is contained in:
Jason Volk 2020-10-01 19:50:06 -07:00
parent 2ddf5faf37
commit 55da546de0

View file

@ -721,15 +721,18 @@ AM_COND_IF([UNTUNED],
RB_VAR_PREPEND([CXXFLAGS], ["-mtune=generic"]) RB_VAR_PREPEND([CXXFLAGS], ["-mtune=generic"])
], [ ], [
machine_tuning="${host_cpu} native instruction set" machine_tuning="${host_cpu} native instruction set"
RB_VAR_PREPEND([CXXFLAGS], ["-mtune=native"])
RB_VAR_PREPEND([CXXFLAGS], ["-march=native"])
AS_CASE([$host_cpu], AS_CASE([$host_cpu],
[x86_64], [x86_64],
[ [
dnl AMD K10's SSE4a doesn't work with valgrind dnl AMD K10's SSE4a doesn't work with valgrind
RB_VAR_PREPEND([CXXFLAGS], ["-mno-sse4a"]) RB_VAR_PREPEND([CXXFLAGS], ["-mno-sse4a"])
dnl Not accepted by clang on aarch64
RB_VAR_PREPEND([CXXFLAGS], ["-march=native"])
]) ])
RB_VAR_PREPEND([CXXFLAGS], ["-mtune=native"])
]) ])
]) ])