[lld] 81d68ad - [lld] Disable -Wsuggest-override for unittests

Logan Smith via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 21 17:41:13 PDT 2020


Author: Logan Smith
Date: 2020-07-21T17:40:59-07:00
New Revision: 81d68ad27b29b1e6bc93807c6e42b14e9a77eade

URL: https://github.com/llvm/llvm-project/commit/81d68ad27b29b1e6bc93807c6e42b14e9a77eade
DIFF: https://github.com/llvm/llvm-project/commit/81d68ad27b29b1e6bc93807c6e42b14e9a77eade.diff

LOG: [lld] Disable -Wsuggest-override for unittests

Added: 
    

Modified: 
    lld/unittests/CMakeLists.txt

Removed: 
    


################################################################################
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)


        


More information about the llvm-commits mailing list