mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Mention Clang for the sake of completeness.
This commit is contained in:
parent
4eeac51574
commit
870af22e75
1 changed files with 2 additions and 1 deletions
|
@ -14,13 +14,14 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/stuff/cmake/modules ${CMAKE_MODU
|
||||||
# Add extended path for FreeBSD and Homebrew on OS X
|
# Add extended path for FreeBSD and Homebrew on OS X
|
||||||
list(APPEND CMAKE_PREFIX_PATH /usr/local)
|
list(APPEND CMAKE_PREFIX_PATH /usr/local)
|
||||||
|
|
||||||
# Enforce compiler flags (GCC compatible, yquake2
|
# Enforce compiler flags (GCC / Clang compatible, yquake2
|
||||||
# won't build with another compiler anyways)
|
# won't build with another compiler anyways)
|
||||||
# -Wall -> More warnings
|
# -Wall -> More warnings
|
||||||
# -fno-strict-aliasing -> Quake 2 is far away from strict aliasing
|
# -fno-strict-aliasing -> Quake 2 is far away from strict aliasing
|
||||||
# -fwrapv -> Make signed integer overflows defined
|
# -fwrapv -> Make signed integer overflows defined
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fno-strict-aliasing -fwrapv")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fno-strict-aliasing -fwrapv")
|
||||||
|
|
||||||
|
# Use -O2 as maximum optimization level. -O3 has it's problems with yquake2.
|
||||||
string(REPLACE "-O3" "-O2" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
|
string(REPLACE "-O3" "-O2" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
|
||||||
|
|
||||||
# yquake2 compilation options
|
# yquake2 compilation options
|
||||||
|
|
Loading…
Reference in a new issue