Commit 23742c09 by Chris Forbes

Fix linux build with gcc-8.2

Change-Id: I8090e55dae72f1b48b46147bad0439d22b513b74 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/35409Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarChris Forbes <chrisforbes@google.com>
parent dbb6f3fa
...@@ -1414,6 +1414,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") ...@@ -1414,6 +1414,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8) if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8)
list(APPEND LLVM_COMPILE_OPTIONS list(APPEND LLVM_COMPILE_OPTIONS
"-Wno-class-memaccess" # memset/memcmp used on non-trivial class object "-Wno-class-memaccess" # memset/memcmp used on non-trivial class object
"-Wno-attributes" # declared inline but not inline
) )
endif() endif()
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
......
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