Reputation:
How can I specify the compiler for Bazel to use? I see the --compiler
option here, but no explanation of its use.
I have read about making new toolchains, but it appears that it is per project or something. For Tensorflow in particular, I want to use a icecc install I have on my machines so I can distribute the build
Upvotes: 3
Views: 1531
Reputation: 2370
For a wrapper around gcc, doing export CC=/path/to/icecc
should just work and start using icecc with bazel 0.4.5. If icecc requires special environment variable you might have to add --action_env
flags.
Note that Bazel was created to run with the Google compilation cluster and as a consequence separate each compilation action, that might interact badly with icecc assumptions.
Upvotes: 1