Skip to content

Support for setting per-file host copt (e.g. --host_per_file_copt) #12406

@GMNGeoffrey

Description

@GMNGeoffrey

Description of the problem / feature request:

Ability to set host only per-file copt. Basically the combination of per_file_copt and host_copt

Feature requests: what underlying problem are you trying to solve with this feature?

Our repository depends on other repositories. We use per_file_copt to turn of clang diagnostics for these other repositories and then set -Werror, but this doesn't work in host mode because there's no way to do things per-file.

What operating system are you running Bazel on?

Linux Debian

What's the output of bazel info release?

release 3.3.1

What's the output of git remote get-url origin ; git rev-parse main ; git rev-parse HEAD ?

$ git remote get-url origin ; git rev-parse main ; git rev-parse HEAD
[email protected]:GMNGeoffrey/iree.git
d13da6a832c3b75ea58129cff1936d39d2005610
361087f36af996632800d1bf9c4bdfa754a645ba

Have you found anything relevant by searching the web?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4This is either out of scope or we don't have bandwidth 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