Skip to content

Commit

Permalink
Add generated header output group for verilator_cc_library
Browse files Browse the repository at this point in the history
  • Loading branch information
hovind committed May 7, 2024
1 parent 925fe7c commit 06dd3b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion verilator/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _verilator_cc_library(ctx):
defines = ["VM_TRACE"] if ctx.attr.trace else []
deps = [ctx.attr._verilator_lib, ctx.attr._zlib, ctx.attr._verilator_svdpi]

return cc_compile_and_link_static_library(
[default, cc] = cc_compile_and_link_static_library(
ctx,
srcs = [verilator_output_cpp],
hdrs = [verilator_output_hpp],
Expand All @@ -166,6 +166,7 @@ def _verilator_cc_library(ctx):
includes = [verilator_output_hpp.path],
deps = deps,
)
return [default, cc, OutputGroupInfo(hdrs = depset([verilator_output_hpp]))]

verilator_cc_library = rule(
implementation = _verilator_cc_library,
Expand Down Expand Up @@ -223,6 +224,7 @@ verilator_cc_library = rule(
provides = [
CcInfo,
DefaultInfo,
OutputGroupInfo,
],
toolchains = [
"@bazel_tools//tools/cpp:toolchain_type",
Expand Down

0 comments on commit 06dd3b0

Please sign in to comment.