diff options
Diffstat (limited to 'cmake/toolchain.clang-default.cmake')
-rw-r--r-- | cmake/toolchain.clang-default.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/toolchain.clang-default.cmake b/cmake/toolchain.clang-default.cmake new file mode 100644 index 00000000..693f55c8 --- /dev/null +++ b/cmake/toolchain.clang-default.cmake @@ -0,0 +1,13 @@ +# For normal clang compilation + +# set(CMAKE_C_FLAGS "-include ${CMAKE_MODULE_PATH}/glibc-compat-symbols.h") + +set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c++ flags") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c flags") + +# set(LINKER_FLAGS "-static-libgcc") + +set(CMAKE_SHARED_LINKER_FLAGS "${LINKER_FLAGS}" CACHE STRING "linker flags" FORCE) +set(CMAKE_MODULE_LINKER_FLAGS "${LINKER_FLAGS}" CACHE STRING "linker flags" FORCE) +set(CMAKE_EXE_LINKER_FLAGS "${LINKER_FLAGS}" CACHE STRING "linker flags" FORCE) + |