mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user