[all-commits] [llvm/llvm-project] 112dc1: Add support for Bazel builds on Windows with `clan...

Chandler Carruth via All-commits all-commits at lists.llvm.org
Thu Oct 28 09:05:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 112dc16014f19ad68f54c59ad1170d71554c42f2
      https://github.com/llvm/llvm-project/commit/112dc16014f19ad68f54c59ad1170d71554c42f2
  Author: Chandler Carruth <chandlerc at gmail.com>
  Date:   2021-10-28 (Thu, 28 Oct 2021)

  Changed paths:
    M utils/bazel/.bazelrc
    M utils/bazel/llvm-project-overlay/clang/BUILD.bazel
    M utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
    M utils/bazel/llvm-project-overlay/llvm/config.bzl
    M utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h
    M utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel

  Log Message:
  -----------
  Add support for Bazel builds on Windows with `clang-cl`.

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.

Some parts of `//clang/...` builds, but that will require more work.




More information about the All-commits mailing list