[lld] Disable -Wsuggest-override for unittests

This commit is contained in:
Logan Smith 2020-07-21 17:40:26 -07:00
parent abd45154bd
commit 81d68ad27b
1 changed files with 4 additions and 0 deletions

View File

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