Skip to content

go_binary: don't concatenate headers in c-archive, c-shared link modes #2131

@jayconrod

Description

@jayconrod

The go_binary_c_archive_shared macro declares several additional targets around go_binary rules with linkmode = "c-shared" or "c-archive". One of these gathers all the .h files in the cgo_exports output group and concatenates them into a single header.

This is not what the Go command does. Only the export header for the main package should be visible. Incorporating headers from other packages adds confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions