Skip to content

Commit 81d68ad

Browse files
committed
[lld] Disable -Wsuggest-override for unittests
1 parent abd4515 commit 81d68ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lld/unittests/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ function(add_lld_unittest test_dirname)
1212
target_link_libraries(${test_dirname} ${LLVM_COMMON_LIBS})
1313
endfunction()
1414

15+
if (CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG)
16+
add_definitions("-Wno-suggest-override")
17+
endif()
18+
1519
add_subdirectory(DriverTests)
1620
add_subdirectory(MachOTests)

0 commit comments

Comments
 (0)