Prevent zig cc/ zig c++ from preventing build due to __DATE__ and __TIME__ macros

This commit is contained in:
NepDisk 2025-12-09 19:02:59 -05:00
parent b058fef648
commit 3908ba75e0

View file

@ -503,6 +503,7 @@ target_compile_options(SRB2SDL2 PRIVATE
$<$<AND:$<COMPILE_LANGUAGE:C>,$<OR:$<C_COMPILER_ID:AppleClang>,$<C_COMPILER_ID:Clang>>>:
-Wall
-Wextra
-Wno-error=date-time
-Wno-absolute-value
-Wno-trigraphs
-Wno-error=non-literal-null-conversion
@ -515,6 +516,7 @@ target_compile_options(SRB2SDL2 PRIVATE
# C++, GNU, Clang and Apple Clang
$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<OR:$<C_COMPILER_ID:GNU>,$<C_COMPILER_ID:AppleClang>,$<C_COMPILER_ID:Clang>>>:
-Wall
-Wno-error=date-time
-Wno-unused-function
-Wno-unused-but-set-variable
-Wno-unused-private-field