Skip to content

Ability to specify per_file_copt for external repositories #2762

@rohitsaboo

Description

@rohitsaboo

I want to be able to add the following to my .bazelrc in order to silence unused parameter warnings from protobufs. However, per_file_copt does not seem to work with the leading @ to identify other repositories.
--per_file_copt=@com_google_protobuf//.*,@com_google_protobuf//.*@-Wnounused-parameter

(Of course other personally less appealing alternatives include setting -Wnounused-parameter for everything or going inside the protobuf repo and cleaning up the hundred or so warnings.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering working on this, but happy to review a PR. (No assignee)team-Rules-CPPIssues for C++ rulestype: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions