bazel-contrib / bazel-contrib/rules_foreign_cc

Set `copt` for internal tools like `make` and `pkgconfig`

Open
#1,333 4 comments 2 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
737
Forks
270
PR merge metrics
No merged PRs in 30d

Description

Please add some way to pass compiler flags for building the rules_foreign_cc internal tools.

We want to build our own code base with `-Werror` but we don't have a way to disable warnings for those external tool we don't have control over.

Contributor guide

Open the contributing guide

Research direction

Start by locating the rules_foreign_cc entry points that build the internal tools named in the issue, especially make and pkgconfig, and trace how copt is handled. Verify behavior by building those tools with -Werror and supplied compiler flags; done means users can control the internal tools' flags without changing their own code's flags.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.