0
0
Fork 0
mirror of https://github.com/yquake2/xatrix.git synced 2025-04-25 03:11:08 +00:00

Follow yquake2 and don't force a C standard in Makefile and CMakeLists.

This reverts 6482460.
This commit is contained in:
Yamagi 2025-03-01 12:41:17 +01:00
parent 64824600d1
commit 26d8292829
2 changed files with 2 additions and 3 deletions

View file

@ -13,11 +13,10 @@ project(yquake2-xatrix)
# Enforce compiler flags (GCC / Clang compatible, yquake2
# won't build with another compiler anyways)
# -std=gnu99 -> Force same C standard as in the Makefile
# -Wall -> More warnings
# -fno-strict-aliasing -> Quake 2 is far away from strict aliasing
# -fwrapv -> Make signed integer overflows defined
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -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}")

View file

@ -88,7 +88,7 @@ endif
# to get it there...
# -fwrapv for defined integer wrapping. MSVC6 did this
# and the game code requires it.
override CFLAGS += -std=gnu99 -fno-strict-aliasing -fwrapv
override CFLAGS += -fno-strict-aliasing -fwrapv
# -MMD to generate header dependencies. Unsupported by
# the Clang shipped with OS X.