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

configure: Add --enable-untuned for more generic binaries.

This commit is contained in:
Jason Volk 2019-04-12 12:01:13 -07:00
parent 40bc440133
commit dc0fbe9e54

View file

@ -392,6 +392,30 @@ AM_COND_IF([GENERIC],
CXXFLAGS+=" -march=native"
])
dnl
dnl Untuned Mode compilation
dnl
AC_MSG_CHECKING(whether to enable fully untuned mode)
AC_ARG_ENABLE(untuned, AC_HELP_STRING([--enable-untuned], [Emit no special feature instructions.]),
[
enable_untuned="yes"
AC_MSG_RESULT([yes])
RB_DEFINE([UNTUNED], [1], [Building binary without extended-feature cpu instructions.])
], [
enable_untuned="no"
AC_MSG_RESULT([no])
])
AM_CONDITIONAL([UNTUNED], [[[[ "$enable_untuned" = "yes" ]]]])
AM_COND_IF([UNTUNED],
[
CXXFLAGS+=" -mno-default"
], [
CXXFLAGS+=""
])
dnl !!! Experimental !!!
dnl
dnl Allows a signal handler to throw a C++ exception if the signal is from
@ -1650,6 +1674,7 @@ echo "Optimized build ................... $optimize"
echo "Link-time optimized ............... $lto"
echo "Optimization level ................ $optimize_level"
echo "Generic binary .................... $enable_generic"
echo "Untuned binary .................... $enable_untuned"
echo "Logging level ..................... $LOG_LEVEL"
echo "Installing into ................... $prefix"
echo