how to judge repository is an external repo or not in BUILD file? #20586
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: feature request
Description of the feature request:
I'm writing a BUILD file for libdwarf, a genrule used to generate a config.h, and this config.h was included by a source file use
this means, directory that contains config.h must be add to search path by -isystem, but bazel just add directory contains config.h use -iquote, so compile will fail for cannot find config.h. so I pass
to copts, this works well in libdwarf repository, but if libdwarf is an external repository in other repository, this will compile failed for $(GENDIR)/src not diretory contains config.h any more
here is a demo
https://github.com/xiedeacc/libdwarf.git
bazel 6.2.1
The text was updated successfully, but these errors were encountered: