Fixup build issues.

This CL adds some override decorations for various destructors and turns
of Werror for the spirv-tools build.

Change-Id: I10ac72cfaee247334f6db2918230283b1f975955
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/41420
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
Auto-Submit: dan sinclair <dsinclair@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
dan sinclair 2021-02-10 16:57:24 +00:00 committed by Commit Bot service account
parent 22a9f175e0
commit c2118b0dcb
4 changed files with 4 additions and 3 deletions

View File

@ -35,7 +35,7 @@ template <typename BODY>
class TestHelperBase : public BODY, public ProgramBuilder {
public:
TestHelperBase() = default;
~TestHelperBase() = default;
~TestHelperBase() override = default;
/// Builds and returns a GeneratorImpl from the program.
/// @note The generator is only built once. Multiple calls to Build() will

View File

@ -34,7 +34,7 @@ template <typename BASE>
class TestHelperBase : public BASE, public ProgramBuilder {
public:
TestHelperBase() = default;
~TestHelperBase() = default;
~TestHelperBase() override = default;
/// Builds and returns a GeneratorImpl from the program.
/// @note The generator is only built once. Multiple calls to Build() will

View File

@ -33,7 +33,7 @@ class TestHelperBase : public BASE, public ProgramBuilder {
public:
TestHelperBase() : td(this) {}
~TestHelperBase() = default;
~TestHelperBase() override = default;
/// Builds and returns a GeneratorImpl from the program.
/// @note The generator is only built once. Multiple calls to Build() will

View File

@ -23,6 +23,7 @@ if(${TINT_BUILD_SPV_READER} OR ${TINT_BUILD_SPV_WRITER})
if (NOT TARGET SPIRV-Tools)
set(SPIRV_SKIP_TESTS ON CACHE BOOL ON)
set(SPIRV_WERROR OFF CACHE BOOL OFF)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/spirv-tools EXCLUDE_FROM_ALL)
endif()
endif()