File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ def _verilator_cc_library(ctx):
157
157
defines = ["VM_TRACE" ] if ctx .attr .trace else []
158
158
deps = [ctx .attr ._verilator_lib , ctx .attr ._zlib , ctx .attr ._verilator_svdpi ]
159
159
160
- return cc_compile_and_link_static_library (
160
+ [ default , cc ] = cc_compile_and_link_static_library (
161
161
ctx ,
162
162
srcs = [verilator_output_cpp ],
163
163
hdrs = [verilator_output_hpp ],
@@ -166,6 +166,7 @@ def _verilator_cc_library(ctx):
166
166
includes = [verilator_output_hpp .path ],
167
167
deps = deps ,
168
168
)
169
+ return [default , cc , OutputGroupInfo (hdrs = depset ([verilator_output_hpp ]))]
169
170
170
171
verilator_cc_library = rule (
171
172
implementation = _verilator_cc_library ,
@@ -223,6 +224,7 @@ verilator_cc_library = rule(
223
224
provides = [
224
225
CcInfo ,
225
226
DefaultInfo ,
227
+ OutputGroupInfo ,
226
228
],
227
229
toolchains = [
228
230
"@bazel_tools//tools/cpp:toolchain_type" ,
You can’t perform that action at this time.
0 commit comments