Merge topic 'TinyCC-compiler'
0efe602
TinyCC: Add default compilation flags (#12605)ec636e2
TinyCC: Add compiler info for shared libs on Linux (#12605)1f49d72
Recognize the Tiny C Compiler (#12605)
This commit is contained in:
commit
4c84aa7346
|
@ -48,6 +48,9 @@
|
|||
#elif defined(__TI_COMPILER_VERSION__)
|
||||
# define COMPILER_ID "TI_DSP"
|
||||
|
||||
#elif defined(__TINYC__)
|
||||
# define COMPILER_ID "TinyCC"
|
||||
|
||||
#elif defined(__SCO_VERSION__)
|
||||
# define COMPILER_ID "SCO"
|
||||
|
||||
|
|
|
@ -0,0 +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")
|
|
@ -0,0 +1,4 @@
|
|||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP "")
|
||||
SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "")
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-soname ")
|
Loading…
Reference in New Issue