File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,17 @@ SET(CMAKE_MODULE_LINKER_FLAGS
5050 "${CMAKE_MODULE_LINKER_FLAGS} ${linkerflags} "
5151 )
5252
53+ if (CMAKE_INTERPROCEDURAL_OPTIMIZATION)
54+ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
55+ set (LIST -fforce-emit-vtables -fwhole-program -vtables -fstrict-vtable-pointers)
56+ add_compile_options ("$<$<COMPILE_LANGUAGE:C,CXX>:${LIST} >" )
57+ endif ()
58+ endif ()
59+
5360if (RAWSPEED_ENABLE_LTO)
5461 if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
5562 include (llvm-toolchain)
56- set (lto_compile "-flto=thin -fforce-emit-vtables -fwhole-program-vtables -fstrict-vtable-pointers " )
63+ set (lto_compile "-flto=thin" )
5764 set (lto_link "-flto=thin -fuse-ld=\" ${LLVMLLD_EXECUTABLE} \" ${LLVMLLD_INCREMENTAL_LDFLAGS} " )
5865 elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
5966 include (gcc-toolchain)
You can’t perform that action at this time.
0 commit comments