title: How to set c++ compiler on OS X with bazel?
body: <p>How can you tell bazel to use a different C++ compiler on OS X?</p>
  
  <pre><code>bazel build --action_env CC=/path/to/compiler //:target
  </code></pre>
  
  <p>works on linux.</p>
  
  <p>But <code>-s</code> shows that bazel always runs with <code>external/local_config_cc/wrapped_clang</code> (clang) on OSX regardless of what <code>CC</code> is.</p>