From 2200823afd79add9701ba456845763e32b4716a8 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Thu, 13 Apr 2023 12:59:33 +0000 Subject: [PATCH] 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 Kokoro: Kokoro Commit-Queue: Dan Sinclair --- src/tint/cmd/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tint/cmd/main.cc b/src/tint/cmd/main.cc index 45982f2b27..9f2757fb06 100644 --- a/src/tint/cmd/main.cc +++ b/src/tint/cmd/main.cc @@ -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"