Fix travis OoM crash with gcc and -O3

Until with move to containers.
This commit is contained in:
Danila Malyutin 2015-08-16 00:29:56 +03:00 committed by Nekotekina
parent 5bf6c25652
commit 7460d215fd
1 changed files with 6 additions and 3 deletions

View File

@ -24,6 +24,9 @@ endif()
if(NOT MSVC) if(NOT MSVC)
add_definitions(-DwxGUI) add_definitions(-DwxGUI)
if($ENV{CI})
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O1") # fix for travis gcc OoM crash. Might be fixed with the move to containers.
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -fexceptions") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -fexceptions")
add_compile_options(-msse -msse2 -mcx16 -mssse3) add_compile_options(-msse -msse2 -mcx16 -mssse3)
else() else()