I wrote a custom CROSSTOOL file that calls the arm-gcc compiler for my Cortex-M target. I specify my flags, including the sysroot via -isystem.
I see that Bazel augments my invocation of gcc with a bunch of extra -I flags. This seems ok, b/c Bazel is adding paths to files generated during the build, etc.
I see that Bazel is also adding a -isystem that I didn't specify:
-isystem external/bazel_tools/tools/cpp/gcc3
I can't figure out how to get Bazel to suppress this, since by looking at the only occurrence of "gcc3" in the code, it looks like it's trying to pull in a specific STL.
Can I tell Bazel not to add this? It's harmless at best, but possibly insidious.