Build contrib in release

This commit is contained in:
alesapin 2020-12-23 15:31:18 +03:00
parent 58d0e8901e
commit b6ff4713ee

View File

@ -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)