]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
build: Remove -fno-new-ttp-matchingg flag 48131/head
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 16 Sep 2022 00:05:57 +0000 (20:05 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 16 Sep 2022 00:05:57 +0000 (20:05 -0400)
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 <aemerson@redhat.com>
src/CMakeLists.txt

index bf89a3aea78d86594ab8b7a28e5c80c9e3bbb4f0..722b0b43da30715a2fbaba85d54a8123ae6aa23b 100644 (file)
@@ -134,7 +134,6 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
   string(PREPEND CMAKE_CXX_FLAGS_DEBUG "-Og ")
   add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wstrict-null-sentinel>)
   add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Woverloaded-virtual>)
-  add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fno-new-ttp-matching>)
   # cmake does not add '-pie' for executables even if
   # CMAKE_POSITION_INDEPENDENT_CODE is TRUE.
   if(EXE_LINKER_USE_PIE)