Open luxe opened 1 year ago
Maybe it's due to the removal of the --sysroot
flag in https://github.com/storypku/bazel_iwyu/blob/039d78330125552d3ae3f14efbe97c6bedeb25b3/bazel/iwyu/iwyu.bzl#L132 ?
We are facing the same issue with https://github.com/f0rmiga/gcc-toolchain. Is there a recommended solution?
We seem to have made some progress by using the latest commit from current master
. Maybe it's worth publishing a new version of bazel_iwyu
based on that commit?
I'm using a hermetic toolchain via bazel-toolchain and providing a custom sysroot.
Tragically, the iwyu aspect does not seem to find my system headers. Here is the error message:
I was looking at the aspect, and I had assumed the CompilationContext would have this path available (perhaps in system_includes), but I guess that's not the case.
In fact, I don't see
-isystem
in my subcommand at all. Hm, I wonder how to derive the appropriate sysroot paths for this aspect.