[llvm][unittest] Add -Wno-suggest-override to more infrastructure that includes googletest/googlemock headers
This commit is contained in:
parent
787eb0c637
commit
308a127a38
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue