From 1e26724dce437566fb645374d41f7b18a7199937 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Sat, 6 Nov 2021 17:09:37 +0100 Subject: build: -Wno-stringop-overflow during LTO phase Type: make Change-Id: I735fa411366c41981e255921eceb18ebbb4b5fe1 Signed-off-by: Damjan Marion --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5327735b0ce..3966bc322ce 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -125,6 +125,10 @@ if (CMAKE_BUILD_TYPE_UC STREQUAL "RELEASE") endif() endif() +if(VPP_USE_LTO) + check_c_compiler_flag("-Wno-stringop-overflow" + compiler_flag_no_stringop_overflow) +endif() ############################################################################## # sanitizers ############################################################################## -- cgit 1.2.3-korg