thenoizz / stressapptest

Exported from code.google.com/p/stressapptest
Apache License 2.0
0 stars 1 forks source link

fix default optimization flags #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
please do not hardcode optimization flags by default.  configure.ac currently 
does:
CXXFLAGS="$CXXFLAGS -O3 -funroll-all-loops  -funroll-loops ..."

could that at least be put behind a configure flag ?  like 
--disable-default-optimizations ?

AC_ARG_ENABLE([default-optimizations],
    AS_HELP_STRING([--disable-default-optimizations], [Disable default optimization flag overrides])])
AS_IF([test x"$enable_default_optimizations" != xno], [
    CXXFLAGS="$CXXFLAGS -O3 -funroll-all-loops -funroll-loops"
])

Original issue reported on code.google.com by vapier@gmail.com on 27 Nov 2012 at 7:02

GoogleCodeExporter commented 9 years ago
Fixed, --disable-default-optimizations added as suggested.

Original comment by nick.j.s...@gmail.com on 11 Feb 2014 at 9:18