From 27f5a0fdaea0918c64be8e7ed0b5cb72d1f762b8 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 21 Jan 2025 17:06:12 +0100 Subject: [PATCH] Add missing headers to runtime_cc target (#8492) Transitive headers like array.h have not been available in the runtime_cc target causing the build to fail. Adding all public headers to make sure transitive headers of flatbuffers.h are available. --- BUILD.bazel | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 436ca59a43c..98990f8a817 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -121,15 +121,7 @@ filegroup( # Library used by flatbuffer_cc_library rules. cc_library( name = "runtime_cc", - hdrs = [ - "include/flatbuffers/base.h", - "include/flatbuffers/flatbuffers.h", - "include/flatbuffers/flexbuffers.h", - "include/flatbuffers/stl_emulation.h", - "include/flatbuffers/util.h", - "include/flatbuffers/vector.h", - "include/flatbuffers/verifier.h", - ], + hdrs = ["//:public_headers"], linkstatic = 1, strip_include_prefix = "/include", )