mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 11:18:51 +02:00
configure: Disable LTO on aarch64.
This commit is contained in:
parent
2bcea3de2f
commit
aed6b9d546
1 changed files with 10 additions and 3 deletions
13
configure.ac
13
configure.ac
|
@ -266,9 +266,16 @@ AC_ARG_ENABLE(lto, RB_HELP_STRING([--disable-lto], [Enable link-time optimizatio
|
||||||
[
|
[
|
||||||
AM_COND_IF(CLANG,
|
AM_COND_IF(CLANG,
|
||||||
[
|
[
|
||||||
lto="yes"
|
AS_CASE([$host_cpu],
|
||||||
AC_MSG_RESULT([yes])
|
[aarch64],
|
||||||
AC_SUBST(LTO, 1)
|
[
|
||||||
|
lto="no"
|
||||||
|
AC_MSG_RESULT([no, doesn't work on aarch64])
|
||||||
|
], [
|
||||||
|
lto="yes"
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
AC_SUBST(LTO, 1)
|
||||||
|
])
|
||||||
], [
|
], [
|
||||||
lto="no"
|
lto="no"
|
||||||
AC_MSG_RESULT([no, only available with clang])
|
AC_MSG_RESULT([no, only available with clang])
|
||||||
|
|
Loading…
Reference in a new issue