Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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