diff options
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
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 ############################################################################## |