From d94967554236fb880f77f497f60c8107a97f656a Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 21 Nov 2023 09:55:54 +0000 Subject: [PATCH] Remove /Zi from MSVC build This seems like an option better set externally by the user if they desire separate debug info Furthermore, this prevents building miniz with sccache enabled, see https://github.com/mozilla/sccache/pull/963 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8978910..947623b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ else() # set(CMAKE_VISIBILITY_INLINES_HIDDEN YES) if (MSVC) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3 /Zi /permissive-") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3 /permissive-") else () set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wshadow -Wformat=2 -Wall -Wno-overlength-strings -pedantic") endif ()