mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
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:
parent
88981bb930
commit
4eeac51574
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue