Skip to content

Commit 5637918

Browse files
authored
Merge pull request #36970 from vespa-engine/arnej/ignore-psabi-warning
suppress "note" that processor-specific ABI changes in GCC 10; that i…
2 parents 3933353 + 1788dfb commit 5637918

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cxx_settings.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
9797
endif()
9898
endif()
9999

100+
include(CheckCompilerFlag)
101+
check_compiler_flag(CXX "-Wpsabi" HAS_W_PSABI)
102+
if(HAS_W_PSABI)
103+
set(CXX_SPECIFIC_WARN_OPTS "-Wno-psabi ${CXX_SPECIFIC_WARN_OPTS}")
104+
endif()
105+
100106
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND VESPA_USE_LTO)
101107
# Enable lto
102108
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -flto=auto -ffat-lto-objects")

0 commit comments

Comments
 (0)