Allow building SPIRV_WRITER without READER
Currently the SPIR-V headers are only included when building the SPIRV_READER. This means the build breaks if the SPIRV_WRITER is enabled but not the reader. This CL fixes the conditionals to include the SPIR-V header for both the reader and the writer. Change-Id: I8690e3e42dbe3071dcaa3ed467d6eac8f62a7bbc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/127160 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
parent
a4866d0d97
commit
2200823afd
|
@ -34,9 +34,9 @@
|
|||
|
||||
#endif // TINT_BUILD_SYNTAX_TREE_WRITER
|
||||
|
||||
#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/cmd/generate_external_texture_bindings.h"
|
||||
|
|
Loading…
Reference in New Issue