|
40 | 40 | "@prelude//cxx:link_groups_types.bzl",
|
41 | 41 | "LinkGroupInfo", # @unused Used as a type
|
42 | 42 | )
|
| 43 | +load( |
| 44 | + "@prelude//cxx:transformation_spec.bzl", |
| 45 | + "TransformationSpecContext", # @unused Used as a type |
| 46 | +) |
43 | 47 | load(
|
44 | 48 | "@prelude//linking:link_groups.bzl",
|
45 | 49 | "LinkGroupLib", # @unused Used as a type
|
@@ -411,7 +415,8 @@ def inherited_third_party_builds(ctx: AnalysisContext, dep_ctx: DepCollectionCon
|
411 | 415 | def inherited_rust_cxx_link_group_info(
|
412 | 416 | ctx: AnalysisContext,
|
413 | 417 | dep_ctx: DepCollectionContext,
|
414 |
| - link_strategy: LinkStrategy) -> RustCxxLinkGroupInfo | None: |
| 418 | + link_strategy: LinkStrategy, |
| 419 | + transformation_spec_context: TransformationSpecContext | None) -> RustCxxLinkGroupInfo | None: |
415 | 420 | # Check minimum requirements
|
416 | 421 | if not cxx_is_gnu(ctx) or not ctx.attrs.auto_link_groups:
|
417 | 422 | return None
|
@@ -467,6 +472,7 @@ def inherited_rust_cxx_link_group_info(
|
467 | 472 | prefer_stripped_objects = False, # Does Rust ever use stripped objects?
|
468 | 473 | anonymous = ctx.attrs.anonymous_link_groups,
|
469 | 474 | public_nodes = public_link_group_nodes,
|
| 475 | + transformation_spec_context = transformation_spec_context, |
470 | 476 | )
|
471 | 477 |
|
472 | 478 | auto_link_groups = {}
|
|
0 commit comments