From 5394e02dfb8a039892a2fa2bb2ef8336f75378ef Mon Sep 17 00:00:00 2001 From: Miki Rozloznik Date: Mon, 13 May 2024 17:28:59 +0800 Subject: [PATCH] fix compiler error --- cmake/toolchain-windows64-mingw.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmake/toolchain-windows64-mingw.cmake b/cmake/toolchain-windows64-mingw.cmake index 5223fb039..6072c3a98 100644 --- a/cmake/toolchain-windows64-mingw.cmake +++ b/cmake/toolchain-windows64-mingw.cmake @@ -57,3 +57,12 @@ set(CMAKE_C_FLAGS # set CXX flags set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILER_BIG_OBJ_FLAG}" CACHE STRING "C++ flags") + +# set CXX flags Debug (fixes #588 - .o file is too big) +set(CMAKE_CXX_FLAGS_DEBUG + "-g -Os" CACHE STRING "C++ flags Debug") + +# set C flags Debug (fixes #588 - .o file is too big) +set(CMAKE_C_FLAGS_DEBUG + "-g -Os" CACHE STRING "C flags Debug") + \ No newline at end of file