[CMAKE] Enable -fno-aggressive-loop-optimizations only for GCC 4.8(+)

Previously, it was also enabled for GCC > 4.7, ie for example for GCC 4.7.1
This commit is contained in:
Hervé Poussineau 2019-04-01 17:29:07 +02:00
parent 2f46ab2104
commit ef3ded6b97

View file

@ -46,6 +46,8 @@ add_compile_flags("-nostdinc")
if(GCC_VERSION VERSION_GREATER 4.7)
add_compile_flags("-mstackrealign")
endif()
if(NOT GCC_VERSION VERSION_LESS 4.8)
add_compile_flags("-fno-aggressive-loop-optimizations")
endif()