HomePhabricator

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

Authored by chandlerc on Oct 16 2021, 12:46 AM.

Description

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.

Details

Committed
chandlercOct 28 2021, 9:04 AM
Parents
rG947e14be9879: [mlir][sparse] move conversion test back to original CHECK testing
Branches
Unknown
Tags
Unknown