bazelbuild/bazel

How to setup ICC and Bazel on Windows

Open

#10,390 opened on Dec 9, 2019

View on GitHub
 (5 comments) (1 reaction) (0 assignees)Java (4,465 forks)batch import
P3help wantedteam-Documentationteam-Rules-CPPtype: documentation (cleanup)

Repository metrics

Stars
 (25,384 stars)
PR merge metrics
 (Avg merge 22d 20h) (77 merged PRs in 30d)

Description

Hi, I setup my bazel environment on Windows, which uses clang by default. I found that CROSSTOOL allows me to set a compiler, but the documentation is very poor on this. Is there any resource available that explains how I can change the default compiler of Bazel to ICC on Windows?

The most promising solution I found is simply setting CC but CC=icc.exe doesn't invoke the compiler as expected and still uses clang. Any help is highly appreciated!

Contributor guide