From 3908ba75e046d610f0f511a9fb0ce93ee76e1d98 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Tue, 9 Dec 2025 19:02:59 -0500 Subject: [PATCH] Prevent zig cc/ zig c++ from preventing build due to __DATE__ and __TIME__ macros --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1e3088c6b..603239ac4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -503,6 +503,7 @@ target_compile_options(SRB2SDL2 PRIVATE $<$,$,$>>: -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 $<$,$,$,$>>: -Wall + -Wno-error=date-time -Wno-unused-function -Wno-unused-but-set-variable -Wno-unused-private-field