Add a split on ':' to build_defs.bzl (#6742)

This commit is contained in:
Sam Sobell 2021-07-19 16:42:27 -04:00 committed by GitHub
parent 65700441d3
commit 016e6aa13f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,7 +209,7 @@ def flatbuffer_cc_library(
Happy dependent Flatbuffering!
'''
output_headers = [
(out_prefix + "%s_generated.h") % (s.replace(".fbs", "").split("/")[-1])
(out_prefix + "%s_generated.h") % (s.replace(".fbs", "").split("/")[-1].split(":")[-1])
for s in srcs
]
reflection_name = "%s_reflection" % name if gen_reflections else ""