0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 08:12:37 +01: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"])
], [
machine_tuning="${host_cpu} native instruction set"
RB_VAR_PREPEND([CXXFLAGS], ["-mtune=native"])
RB_VAR_PREPEND([CXXFLAGS], ["-march=native"])
AS_CASE([$host_cpu],
[x86_64],
[
dnl AMD K10's SSE4a doesn't work with valgrind
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"])
])
])