Commit 08090462 by David 'Digit' Turner Committed by David Turner

CMakeLists: Fix Fuchsia build.

This CL adds -Wno-deprecated-copy to the CLang compile options, to avoid multiple errors with Fuchsia's Clang toolchain. Also updates the package name used to access Fuchsia libaries from FuchsiaSdk to FuchsiaLibraries. This reflects changes performed in https://fuchsia-review.googlesource.com/c/fuchsia/+/379673/ Bug: None Change-Id: Ie97a69a2bd9adaa043b3be2abdbf2e8a6dcd1936 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/44017 Presubmit-Ready: David Turner <digit@google.com> Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com> Tested-by: 's avatarDavid Turner <digit@google.com>
parent 55e85da8
...@@ -32,7 +32,7 @@ elseif(APPLE) ...@@ -32,7 +32,7 @@ elseif(APPLE)
elseif(FUCHSIA) elseif(FUCHSIA)
# NOTE: Building for Fuchsia requires a Fuchsia CMake-based SDK. # NOTE: Building for Fuchsia requires a Fuchsia CMake-based SDK.
# See https://fuchsia-review.googlesource.com/c/fuchsia/+/379673 # See https://fuchsia-review.googlesource.com/c/fuchsia/+/379673
find_package(FuchsiaSdk) find_package(FuchsiaLibraries)
else() else()
message(FATAL_ERROR "Platform is not supported") message(FATAL_ERROR "Platform is not supported")
endif() endif()
...@@ -406,6 +406,7 @@ else() ...@@ -406,6 +406,7 @@ else()
"-Wno-undefined-var-template" # instantiation of variable 'X' required here, but no definition is available "-Wno-undefined-var-template" # instantiation of variable 'X' required here, but no definition is available
"-Wno-extra-semi" # extra ';' after member function definition "-Wno-extra-semi" # extra ';' after member function definition
"-Wno-unused-parameter" # unused parameter 'X' "-Wno-unused-parameter" # unused parameter 'X'
"-Wno-deprecated-copy" # implicit copy constructor for 'X' is deprecated because of user-declared copy assignment operator.
# Silence errors caused by unknown warnings when building with older # Silence errors caused by unknown warnings when building with older
# versions of Clang. This demands checking that warnings added above # versions of Clang. This demands checking that warnings added above
......
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