Fix #ifdefs for spvtools

Change-Id: I76d8d983e44e04be4abfbb25678cab8d926fbd6b
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122840
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Austin Eng 2023-03-07 09:27:45 +00:00 committed by Dawn LUCI CQ
parent 67e7c9fec0
commit 142bddf7da
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ source_set("tint_cmd_helper") {
]
deps = [ "${tint_root_dir}/src/tint:libtint" ]
if (tint_build_spv_writer) {
if (tint_build_spv_reader || tint_build_spv_writer) {
deps += [ "${tint_spirv_tools_dir}/:spvtools_headers" ]
}
}

View File

@ -24,9 +24,9 @@
#include <utility>
#include <vector>
#if TINT_BUILD_SPV_READER
#if TINT_BUILD_SPV_READER || TINT_BUILD_SPV_WRITER
#include "spirv-tools/libspirv.hpp"
#endif // TINT_BUILD_SPV_READER
#endif // TINT_BUILD_SPV_READER || TINT_BUILD_SPV_WRITER
#include "src/tint/ast/module.h"
#include "src/tint/diagnostic/formatter.h"