3 ms·
You have to go far out of your way to make bazel not have implicit system deps, don't you? The default toolchain is to just call whatever cc is in the path, or
by jeffbee 6y ago
You have to go far out of your way to make bazel not have implicit system deps, don't you? The default toolchain is to just call whatever cc is in the path, or whatever is in CC environment variable. Working on the toolchain rules / crosstool is very little practiced art and severely under-documented.
- joshuamorton 6y agoYes, see the "host mode".
- klodolph 6y agoIt is underdocumented, but you don’t have to go out of your way because you in most cases you can use prepackaged toolchains that other people have made. I have successfully written my own toolchain rules in Bazel. Yes, it is a pain. But it’s usually only necessary if you have some kind of unusual target—usually, someone else has written the toolchain rules for you. I've even witnessed a Bazel build system that made working DOS binaries. The entire set of rules was smaller than you might think.