From 81d68ad27b29b1e6bc93807c6e42b14e9a77eade Mon Sep 17 00:00:00 2001 From: Logan Smith Date: Tue, 21 Jul 2020 17:40:26 -0700 Subject: [PATCH] [lld] Disable -Wsuggest-override for unittests --- lld/unittests/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lld/unittests/CMakeLists.txt b/lld/unittests/CMakeLists.txt index 84d35d43f4e8..3330f7c28aeb 100644 --- a/lld/unittests/CMakeLists.txt +++ b/lld/unittests/CMakeLists.txt @@ -12,5 +12,9 @@ function(add_lld_unittest test_dirname) target_link_libraries(${test_dirname} ${LLVM_COMMON_LIBS}) endfunction() +if (CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG) + add_definitions("-Wno-suggest-override") +endif() + add_subdirectory(DriverTests) add_subdirectory(MachOTests)