From b6ff4713ee5d8428fcde09b39265ce24dce8eead Mon Sep 17 00:00:00 2001 From: alesapin Date: Wed, 23 Dec 2020 15:31:18 +0300 Subject: [PATCH] Build contrib in release --- contrib/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt index 9fccee89c1d..a8cd1f07c1a 100644 --- a/contrib/CMakeLists.txt +++ b/contrib/CMakeLists.txt @@ -14,6 +14,10 @@ unset (_current_dir_name) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w") +if (WITH_COVERAGE) + add_compile_options(-O3 -DNDEBUG -finline) +endif() + if (SANITIZE STREQUAL "undefined") # 3rd-party libraries usually not intended to work with UBSan. add_compile_options(-fno-sanitize=undefined)