Skip to content

Commit 06dd3b0

Browse files
committed
Add generated header output group for verilator_cc_library
1 parent 925fe7c commit 06dd3b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

verilator/defs.bzl

+3-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def _verilator_cc_library(ctx):
157157
defines = ["VM_TRACE"] if ctx.attr.trace else []
158158
deps = [ctx.attr._verilator_lib, ctx.attr._zlib, ctx.attr._verilator_svdpi]
159159

160-
return cc_compile_and_link_static_library(
160+
[default, cc] = cc_compile_and_link_static_library(
161161
ctx,
162162
srcs = [verilator_output_cpp],
163163
hdrs = [verilator_output_hpp],
@@ -166,6 +166,7 @@ def _verilator_cc_library(ctx):
166166
includes = [verilator_output_hpp.path],
167167
deps = deps,
168168
)
169+
return [default, cc, OutputGroupInfo(hdrs = depset([verilator_output_hpp]))]
169170

170171
verilator_cc_library = rule(
171172
implementation = _verilator_cc_library,
@@ -223,6 +224,7 @@ verilator_cc_library = rule(
223224
provides = [
224225
CcInfo,
225226
DefaultInfo,
227+
OutputGroupInfo,
226228
],
227229
toolchains = [
228230
"@bazel_tools//tools/cpp:toolchain_type",

0 commit comments

Comments
 (0)