File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,12 @@ RAWSPEED_BUILD="$WORK/rawspeed"
2525
2626ln -f -s /usr/local/bin/lld /usr/bin/ld
2727
28+ CFLAGS=" $CFLAGS -flto=thin"
29+ CXXFLAGS=" $CXXFLAGS -flto=thin"
30+
2831CXXFLAGS=" $CXXFLAGS -fforce-emit-vtables"
32+ # CXXFLAGS="$CXXFLAGS -fwhole-program-vtables" # DOES NOT WORK WITH SANCOV!
33+ CXXFLAGS=" $CXXFLAGS -fstrict-vtable-pointers"
2934
3035THINLTO_CACHE=" $WORK /thinlto-cache"
3136LDFLAGS=" ${LDFLAGS:- } -Wl,--thinlto-cache-dir=\" $THINLTO_CACHE \" "
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ if(CMAKE_INTERPROCEDURAL_OPTIMIZATION)
5454 if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
5555 set (LIST )
5656 list (APPEND LIST -fforce-emit-vtables)
57- list (APPEND LIST -fno-whole- program -vtables)
58- list (APPEND LIST -fno-strict -vtable-pointers)
57+ # list(APPEND LIST -fwhole- program-vtables) # DOES NOT WORK WITH SANCOV!
58+ list (APPEND LIST -fstrict -vtable-pointers)
5959 add_compile_options ("$<$<COMPILE_LANGUAGE:C,CXX>:${LIST} >" )
6060 endif ()
6161endif ()
You can’t perform that action at this time.
0 commit comments