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:
parent
2ddf5faf37
commit
55da546de0
1 changed files with 5 additions and 2 deletions
|
@ -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"])
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue