mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00: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:
parent
2f46ab2104
commit
ef3ded6b97
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue