Commit 8d2add45 authored by Stefano Bonicatti's avatar Stefano Bonicatti

Fix flags for Clang

Clang currently doesn't support the -fabi-version=0 flag.

If Vc is used, it will have exceptions so we need to enable them,
GCC doesn't detect this for some reason.
parent e6e309a9
......@@ -521,7 +521,11 @@ if(HAVE_VC)
include (VcMacros)
set(ADDITIONAL_VC_FLAGS "-Wabi -fabi-version=0 -ffp-contract=fast")
if(Vc_COMPILER_IS_CLANG)
set(ADDITIONAL_VC_FLAGS "-Wabi -ffp-contract=fast")
else()
set(ADDITIONAL_VC_FLAGS "-Wabi -fabi-version=0 -ffp-contract=fast")
endif()
#Handle Vc master
if(Vc_VERSION_MAJOR GREATER 0 OR Vc_VERSION_MINOR GREATER 7)
......
......@@ -23,6 +23,7 @@ set(LINK_VC_LIB)
if(HAVE_VC)
include_directories(${Vc_INCLUDE_DIR})
set(LINK_VC_LIB ${Vc_LIBRARIES})
kde_enable_exceptions()
ko_compile_for_all_implementations_no_scalar(__per_arch_factory_objs compositeops/KoOptimizedCompositeOpFactoryPerArch.cpp)
message("Following objects are generated from the per-arch lib")
......
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