0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-17 01:18:39 +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, 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])