Commit 337585e3 authored by Albert Astals Cid's avatar Albert Astals Cid

Set our default cxx and c flags to clang too

This code needs a bit of refactoring to share most of it between gcc and
clang
parent 442be9e3
Pipeline #68095 passed with stages
in 20 minutes and 56 seconds
......@@ -165,6 +165,9 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(DEFAULT_COMPILE_WARNINGS "${_warn}")
set(DEFAULT_COMPILE_WARNINGS_EXTRA "${_warn} ${_warnx}")
set(CMAKE_CXX_FLAGS "-fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE")
set(CMAKE_C_FLAGS "-std=c99 -D_DEFAULT_SOURCE")
endif()
if(CMAKE_C_COMPILER MATCHES "icc")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment