From 0efe602c595e78c5e7cef6c85dc7983be7a905df Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Sat, 3 Dec 2011 12:21:48 +0100 Subject: TinyCC: Add default compilation flags (#12605) --- Modules/Compiler/TinyCC-C.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Modules/Compiler/TinyCC-C.cmake b/Modules/Compiler/TinyCC-C.cmake index bb27ead..4a48c0a 100644 --- a/Modules/Compiler/TinyCC-C.cmake +++ b/Modules/Compiler/TinyCC-C.cmake @@ -1 +1,8 @@ SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") + +# no optimization in tcc: +SET (CMAKE_C_FLAGS_INIT "") +SET (CMAKE_C_FLAGS_DEBUG_INIT "-g") +SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-DNDEBUG") +SET (CMAKE_C_FLAGS_RELEASE_INIT "-DNDEBUG") +SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-g") -- cgit v0.12