From a4666888a446e9bd058d08b14a0e7d1e1e0eb430 Mon Sep 17 00:00:00 2001 From: James Price Date: Wed, 8 Jun 2022 15:04:12 +0000 Subject: [PATCH] tint: Fix include layering violation Headers exposing functionality from the core Tint library should be included via include/tint/tint.h. This fixes the google3 build. Change-Id: I82a9d0105b3b44fb4c4c89b59e9282290dd49c61 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/93120 Kokoro: Kokoro Reviewed-by: Ben Clayton Reviewed-by: Antonio Maiorano Commit-Queue: Ben Clayton Auto-Submit: James Price --- include/tint/tint.h | 1 + src/tint/cmd/main.cc | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tint/tint.h b/include/tint/tint.h index 2b8430e01d..c397cdcba8 100644 --- a/include/tint/tint.h +++ b/include/tint/tint.h @@ -33,6 +33,7 @@ #include "src/tint/transform/robustness.h" #include "src/tint/transform/single_entry_point.h" #include "src/tint/transform/vertex_pulling.h" +#include "src/tint/writer/flatten_bindings.h" #include "src/tint/writer/writer.h" #if TINT_BUILD_SPV_READER diff --git a/src/tint/cmd/main.cc b/src/tint/cmd/main.cc index c067c39b14..438e4a28d1 100644 --- a/src/tint/cmd/main.cc +++ b/src/tint/cmd/main.cc @@ -34,7 +34,6 @@ #include "src/tint/utils/io/command.h" #include "src/tint/utils/string.h" #include "src/tint/val/val.h" -#include "src/tint/writer/flatten_bindings.h" #include "tint/tint.h" namespace {