Fix gcc < 9 builds

Bug: b/192284721 Change-Id: I9b90cc5f77f7481c0bdcddb417679cf129ecc4c8 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/55348Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Commit-Queue: Nicolas Capens <nicolascapens@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 314508f7
......@@ -424,10 +424,15 @@ else()
"-Wreorder"
"-Wsign-compare"
"-Wmissing-braces"
"-Wdeprecated-copy" # implicit copy constructor for 'X' is deprecated because of user-declared copy assignment operator.
)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 9)
list(APPEND SWIFTSHADER_COMPILE_OPTIONS
"-Wdeprecated-copy" # implicit copy constructor for 'X' is deprecated because of user-declared copy assignment operator.
)
endif()
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
list(APPEND SWIFTSHADER_COMPILE_OPTIONS
"-Wextra"
"-Wunreachable-code-loop-increment"
......@@ -435,6 +440,7 @@ else()
"-Wstring-conversion"
"-Wextra-semi"
"-Wignored-qualifiers"
"-Wdeprecated-copy" # implicit copy constructor for 'X' is deprecated because of user-declared copy assignment operator.
)
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment