cc_* rules does not expand location make variables #12482
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Rules-CPP
Issues for C++ rules
type: support / not a bug (process)
Description of the problem / feature request:
The documentation says:
defines
: List of defines to add to the compile line. Subject to "Make" variable substitution and Bourne shell tokenization.It seems substitution of
$(location label)
,$(execpath label)
,$(rootpath label)
and their plural form does not work.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
What operating system are you running Bazel on?
Linux.
What's the output of
bazel info release
?release 3.7.0
Have you found anything relevant by searching the web?
CcCommon.java:
No labelMap is passed to the expander, and it isn't enriched using withExecLocations either. I suspect the expander simply doesn't know about the labels it is supposed to resolve.
The text was updated successfully, but these errors were encountered: