mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
Fix for error "'Run' overrides a member function but is not marked
'override' [-Werror,-Wsuggest-override]" occuring during windows debug self-build.
This commit is contained in:
parent
c009e5b6df
commit
fa7aa68b13
@ -13,3 +13,12 @@ add_llvm_library(LLVMTestingSupport
|
|||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(LLVMTestingSupport PRIVATE gtest)
|
target_link_libraries(LLVMTestingSupport PRIVATE gtest)
|
||||||
|
|
||||||
|
# This is to avoid the error in gtest-death-test-internal.h
|
||||||
|
# (150,16): error: 'Create' overrides a member function but
|
||||||
|
# is not marked 'override' [-Werror,-Wsuggest-override]
|
||||||
|
# during self-compile on Windows.
|
||||||
|
|
||||||
|
if (HOST_WINNT AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" )
|
||||||
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-suggest-override")
|
||||||
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user