Skip to content

Commit 841c8c7

Browse files
committed
protobuf: add support for cc_shared_library
1 parent 2a383c6 commit 841c8c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

haskell/protobuf.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def _haskell_proto_aspect_impl(target, ctx):
215215
# TODO this pattern match is very brittle. Let's not do this. The
216216
# order should match the order in the return value expression in
217217
# haskell_library_impl().
218-
[hs_info, cc_info, _coverage_info, default_info, library_info, output_groups] = _haskell_library_impl(patched_ctx)
218+
[hs_info, cc_info, cc_shared_library_info, _coverage_info, default_info, library_info, output_groups] = _haskell_library_impl(patched_ctx)
219219

220220
# Build haddock informations
221221
transitive_html = {}
@@ -255,11 +255,13 @@ def _haskell_proto_aspect_impl(target, ctx):
255255
for dep in getattr(ctx.rule.attr, attr, [])
256256
]),
257257
cc_info = cc_info,
258+
cc_shared_info = cc_shared_library_info,
258259
is_haskell = True,
259260
)
260261

261262
return [
262263
cc_info, # CcInfo
264+
cc_shared_library_info, # CcSharedLibraryInfo
263265
hs_info, # HaskellInfo
264266
library_info, # HaskellLibraryInfo
265267
# We can't return DefaultInfo here because target already provides that.

0 commit comments

Comments
 (0)