Skip to content

Consolidate cf_cc_{binary,library,test} implementations - #2983

Open
Databean wants to merge 1 commit into
google:mainfrom
Databean:consolidate_cc_target
Open

Consolidate cf_cc_{binary,library,test} implementations#2983
Databean wants to merge 1 commit into
google:mainfrom
Databean:consolidate_cc_target

Conversation

@Databean

@Databean Databean commented Aug 6, 2026

Copy link
Copy Markdown
Member

This fixes the divergence that only cf_cc_library handled cases where both srcs and hdrs were empty, and makes the remaining divergences more explicit:

  • Only cf_cc_binary interacts with linkopts
  • Only cf_cc_test adds extra dependencies

It may come up later that deps is configurable for binary and library (required for allocd) but cannot be configurable for test (so that cf_cc_library can add the additional links).

Bug: b/543509210

@Databean
Databean requested a review from 3405691582 August 6, 2026 20:50
This fixes the divergence that only `cf_cc_library` handled cases where
both `srcs` and `hdrs` were empty, and makes the remaining divergences
more explicit:

- Only `cf_cc_binary` interacts with linkopts
- Only `cf_cc_test` adds extra dependencies

It may come up later that `deps` is configurable for `binary` and
`library` (required for allocd) but cannot be configurable for `test`
(so that cf_cc_library can add the additional links).

Bug: b/543509210
@Databean
Databean force-pushed the consolidate_cc_target branch from 551a3e3 to aa38d90 Compare August 7, 2026 22:39
@Databean Databean added the kokoro:run Run e2e tests. label Aug 7, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants