[llvm][unittest] Add -Wno-suggest-override to more infrastructure that includes googletest/googlemock headers

This commit is contained in:
Logan Smith 2020-07-20 13:59:34 -07:00
parent 787eb0c637
commit 308a127a38
2 changed files with 8 additions and 0 deletions

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

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