Update CMake and XCode build systems

This commit is contained in:
Gustaf Alhäll 2023-11-02 21:58:36 +01:00
parent ede41c474b
commit 6d650728f6
No known key found for this signature in database
GPG key ID: 6C1F67D690CDEDFD
4 changed files with 8 additions and 3 deletions

View file

@ -260,6 +260,10 @@ target_compile_options(SRB2SDL2 PRIVATE
-Wdisabled-optimization
>
$<$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,3.4.0>:
-fwrapv
>
$<$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,4.0.0>:
-Wold-style-definition
-Wmissing-field-initializers

View file

@ -65,7 +65,8 @@ gcc_versions:=\
75 74 73 72 71 70\
64 63 62 61 60\
55 54 53 52 51 50\
49 48 47 46 45 44 43 42 41 40
49 48 47 46 45 44 43 42 41 40\
34
latest_gcc_version:=13.2

View file

@ -160,7 +160,7 @@ opts+=-O0
endif
endif
ifdef GCC45
ifdef GCC34
opts+=-fwrapv
endif

View file

@ -2133,7 +2133,7 @@
INSTALL_PATH = "$(HOME)/Applications";
JAVA_COMPILER_DEBUGGING_SYMBOLS = NO;
OPTIMIZATION_CFLAGS = "-O2";
OTHER_CFLAGS = "-DMAC_ALERT -DUNIXCOMMON -DSDLMAIN -DHAVE_MIXER -DHAVE_PNG -D_BIG_ENDIAN -DSTDC_HEADERS -DSDL -Wall -Winline -fno-strict-aliasing";
OTHER_CFLAGS = "-DMAC_ALERT -DUNIXCOMMON -DSDLMAIN -DHAVE_MIXER -DHAVE_PNG -D_BIG_ENDIAN -DSTDC_HEADERS -DSDL -Wall -Winline -fno-strict-aliasing -fwrapv";
OTHER_REZFLAGS = "";
PREBINDING = NO;
PRODUCT_NAME = Srb2;