From f5bb77557279b0b93b12c365769e6c673678d4ef Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Thu, 15 Sep 2022 20:05:57 -0400 Subject: [PATCH] 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 --- src/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bf89a3aea78..722b0b43da3 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) -- 2.39.5