I have a build scenario where I need to compile a set of libraries with multiple toolchains as a part of a single "blaze build" operation.
As a simplified example, consider a graphics processing application which will, at run-time, determine the processor features supported and load a different version of the library which does the actual math work. Different toolchains might be the Intel compiler, and gcc with different linking options. And for $reasons this is implemented as separate toolchains.
In this case it's obvious that a "product build" involves building the external application once for the target platform, and the library multiple times.
How do I go about annotating the BUILD file that I need to do the build of the libraries for each of a set of toolchains?