Skip to content

Commit 503a066

Browse files
committed
CMake: don't set fancy LTO flags, seem to have problems with oss-fuzz
1 parent 2e0cf43 commit 503a066

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake/compiler-flags.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ SET(CMAKE_MODULE_LINKER_FLAGS
5252

5353
if(CMAKE_INTERPROCEDURAL_OPTIMIZATION)
5454
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
55-
set(LIST -fforce-emit-vtables -fwhole-program-vtables -fstrict-vtable-pointers)
55+
set(LIST )
56+
list(APPEND LIST -fno-force-emit-vtables)
57+
list(APPEND LIST -fno-whole-program-vtables)
58+
list(APPEND LIST -fno-strict-vtable-pointers)
5659
add_compile_options("$<$<COMPILE_LANGUAGE:C,CXX>:${LIST}>")
5760
endif()
5861
endif()

0 commit comments

Comments
 (0)