From f244bffdd51d8c4aeddd4181025559a41de4154f Mon Sep 17 00:00:00 2001 From: Austin Eng Date: Tue, 7 Mar 2023 02:41:45 +0000 Subject: [PATCH] Fix build of tint_cmd_helper spvtools_headers are not available without tint_build_spv_writer Change-Id: If4539715b0e685c9b54bf24719a905fb0265a402 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122820 Commit-Queue: Austin Eng Kokoro: Austin Eng Kokoro: Kokoro Reviewed-by: James Price --- src/tint/cmd/BUILD.gn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tint/cmd/BUILD.gn b/src/tint/cmd/BUILD.gn index ab0c964832..e9188cf8ef 100644 --- a/src/tint/cmd/BUILD.gn +++ b/src/tint/cmd/BUILD.gn @@ -21,10 +21,10 @@ source_set("tint_cmd_helper") { "helper.h", ] - deps = [ - "${tint_root_dir}/src/tint:libtint", - "${tint_spirv_tools_dir}/:spvtools_headers", - ] + deps = [ "${tint_root_dir}/src/tint:libtint" ] + if (tint_build_spv_writer) { + deps += [ "${tint_spirv_tools_dir}/:spvtools_headers" ] + } } executable("tint") {