0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-18 10:53:48 +02:00

configure: Disable LTO on aarch64.

This commit is contained in:
Jason Volk 2020-10-01 20:57:03 -07:00
parent 2bcea3de2f
commit aed6b9d546

View file

@ -266,9 +266,16 @@ AC_ARG_ENABLE(lto, RB_HELP_STRING([--disable-lto], [Enable link-time optimizatio
[
AM_COND_IF(CLANG,
[
lto="yes"
AC_MSG_RESULT([yes])
AC_SUBST(LTO, 1)
AS_CASE([$host_cpu],
[aarch64],
[
lto="no"
AC_MSG_RESULT([no, doesn't work on aarch64])
], [
lto="yes"
AC_MSG_RESULT([yes])
AC_SUBST(LTO, 1)
])
], [
lto="no"
AC_MSG_RESULT([no, only available with clang])