diff --git a/CMakeLists.txt b/CMakeLists.txt index 4822bc69..3ab34211 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,6 +95,9 @@ add_compile_options( -Wno-clobbered -fmacro-prefix-map=${CMAKE_SOURCE_DIR}/=) +# disable lto as it may break plugins +add_compile_options(-fno-lto) + set(CMAKE_EXECUTABLE_ENABLE_EXPORTS TRUE) set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)