Explorar o código

TinyCC: Add default compilation flags (#12605)

Mathieu Malaterre %!s(int64=14) %!d(string=hai) anos
pai
achega
0efe602c59
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      Modules/Compiler/TinyCC-C.cmake

+ 7 - 0
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")