[PATCH] D111930: Add support for Bazel builds on Windows with `clang-cl`.

Chandler Carruth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 16 01:05:31 PDT 2021


chandlerc created this revision.
chandlerc added reviewers: llvm-commits, GMNGeoffrey.
Herald added a subscriber: mcrosier.
chandlerc requested review of this revision.

Adds basic `--config=clang-cl` to set up the basic options needed, and
then fix a number of issues that surface in Windows builds for me.

With these fixes, //llvm/... builds cleanly. One unittest still fails,
but its just due to running out of stack space due to creating a large
number of short-lived stack variables. The test should probably be
decomposed into a set of tests (`LegalizerInfoTest::RuleSets`), but that
seemed like too invasive of a change here and with everything building
cleanly this isn't disrupting me experimenting with Windows builds.


https://reviews.llvm.org/D111930

Files:
  utils/bazel/.bazelrc
  utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
  utils/bazel/llvm-project-overlay/llvm/config.bzl
  utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h
  utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111930.380148.patch
Type: text/x-patch
Size: 6071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211016/9a857daf/attachment.bin>


More information about the llvm-commits mailing list