File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 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):
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 (headers = depset ([verilator_output_hpp ]))]
169170
170171verilator_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" ,
You can’t perform that action at this time.
0 commit comments