We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3933353 + 1788dfb commit 5637918Copy full SHA for 5637918
1 file changed
cxx_settings.cmake
@@ -97,6 +97,12 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
97
endif()
98
99
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
+
106
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND VESPA_USE_LTO)
107
# Enable lto
108
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -flto=auto -ffat-lto-objects")
0 commit comments