From 2876589442f603bfc4bb29b51180c10f8a33e18e Mon Sep 17 00:00:00 2001 From: Chris Jones <jonesc@hep.phy.cam.ac.uk> Date: Wed, 29 Jan 2025 15:55:48 +0000 Subject: [PATCH] Suppress psabi notes on ARM/GCC functor builds --- Phys/FunctorCore/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Phys/FunctorCore/CMakeLists.txt b/Phys/FunctorCore/CMakeLists.txt index 8ef5680d8ae..5895820f35b 100644 --- a/Phys/FunctorCore/CMakeLists.txt +++ b/Phys/FunctorCore/CMakeLists.txt @@ -222,6 +222,14 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${preprocessed_header_name}" TYPE INC # something for later string(REPLACE " -pedantic" "" cxx_flags_without_pedantic ${CMAKE_CXX_FLAGS}) +# Prevent GCC notes on ARM +# note: parameter passing for argument of type 'std::pair<double, double>' when C++17 is enabled changed to match C++14 in GCC 10.1 +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111516 +if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") + message(STATUS "Appending -Wno-psabi to functor build compiler flags") + set(cxx_flags_without_pedantic "${cxx_flags_without_pedantic} -Wno-psabi ") +endif() + # the below logic assumes that `CMAKE_CXX_COMPILER` points to a compiler # wrapper. These wrappers are created by the cmake logic defined in # lcg-toolchains -- GitLab