summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2011-12-03 11:21:48 (GMT)
committerBrad King <brad.king@kitware.com>2011-12-05 13:59:50 (GMT)
commit0efe602c595e78c5e7cef6c85dc7983be7a905df (patch)
tree0ddc02b57983771b95bfb333302cbcb5ccb1818f /Modules/Compiler
parentec636e299ff1b74457dc4fa306cbd9f33fabce9e (diff)
downloadCMake-0efe602c595e78c5e7cef6c85dc7983be7a905df.zip
CMake-0efe602c595e78c5e7cef6c85dc7983be7a905df.tar.gz
CMake-0efe602c595e78c5e7cef6c85dc7983be7a905df.tar.bz2
TinyCC: Add default compilation flags (#12605)
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/TinyCC-C.cmake7
1 files changed, 7 insertions, 0 deletions
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")