From: Adam C. Emerson Date: Fri, 16 Sep 2022 00:05:57 +0000 (-0400) Subject: build: Remove -fno-new-ttp-matchingg flag X-Git-Tag: v18.1.0~1146^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F48131%2Fhead;p=ceph.git build: Remove -fno-new-ttp-matchingg flag This was added in the upgrade to C++17. It's no longer needed since fixing Clang compatibility got rid of non-conforming templates. It's no longer needed and getting rid of it is a (minor) quality of life enhancement since it gets rid of a spurious error when using Clang based build tools (language server, etc.) while compiling with GCC. Signed-off-by: Adam C. Emerson --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bf89a3aea78d..722b0b43da30 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -134,7 +134,6 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL GNU) string(PREPEND CMAKE_CXX_FLAGS_DEBUG "-Og ") add_compile_options($<$:-Wstrict-null-sentinel>) add_compile_options($<$:-Woverloaded-virtual>) - add_compile_options($<$:-fno-new-ttp-matching>) # cmake does not add '-pie' for executables even if # CMAKE_POSITION_INDEPENDENT_CODE is TRUE. if(EXE_LINKER_USE_PIE)