[llvm][unittest] Add -Wno-suggest-override to more infrastructure that includes googl...
authorLogan Smith <logan.r.smith0@gmail.com>
Mon, 20 Jul 2020 20:59:34 +0000 (13:59 -0700)
committerLogan Smith <logan.r.smith0@gmail.com>
Mon, 20 Jul 2020 20:59:39 +0000 (13:59 -0700)
llvm/lib/Testing/Support/CMakeLists.txt
llvm/unittests/CMakeLists.txt

index fe460aeefc91f8ca0d139f3f506fe76e6825362a..4d2f46e9b79db8d2456d1ebbe5750c95ded97ce0 100644 (file)
@@ -15,6 +15,10 @@ add_llvm_library(LLVMTestingSupport
   Support
   )
 
+if (CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG)
+  add_definitions("-Wno-suggest-override")
+endif()
+
 include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include)
 include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googlemock/include)
 target_link_libraries(LLVMTestingSupport PRIVATE gtest)
index d7dbaeaa32fe879d76f80abe017da1ed506bef86..c1e02313d0441a32ea6daceae20b8d1fe27af58c 100644 (file)
@@ -14,6 +14,10 @@ function(add_llvm_target_unittest test_dir_name)
   add_llvm_unittest(${test_dir_name} DISABLE_LLVM_LINK_LLVM_DYLIB ${ARGN})
 endfunction()
 
+if (CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG)
+  add_definitions("-Wno-suggest-override")
+endif()
+
 add_subdirectory(ADT)
 add_subdirectory(Analysis)
 add_subdirectory(AsmParser)