Lower the optimization level to -O2

In the past -O3 was somewhat shaky. Quake II isn't the best and most
standard conformant code you can think of ;)
This commit is contained in:
Yamagi Burmeister 2015-08-11 21:40:15 +02:00
parent 88981bb930
commit 4eeac51574

View file

@ -21,6 +21,8 @@ list(APPEND CMAKE_PREFIX_PATH /usr/local)
# -fwrapv -> Make signed integer overflows defined
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fno-strict-aliasing -fwrapv")
string(REPLACE "-O3" "-O2" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
# yquake2 compilation options
option(ZIP_SUPPORT "ZIP support" ON)
option(OGG_SUPPORT "OGG Vorbis playback support (Music)" ON)