This is an archive of the discontinued LLVM Phabricator instance.

Updated getting started guide for visual studio + cmake
ClosedPublic

Authored by aaron.ballman on May 25 2017, 5:39 AM.

Details

Summary

It took me a while to track this down and I figured I'd save someone else the time. By default, CMake uses the 32-bit toolchain on Windows, even if generating a 64-bit solution. Given the size of Clang's code base, this can lead to quite a few link errors with the linker running out of memory. If you pass -Thost=x64 when generating the Visual Studio solution, then the resulting project files will use the 64-bit toolchain and the toolchain no longer runs out of memory.

The same wording is being used in D33546 for LLVM's side of things.

Diff Detail

Event Timeline

aaron.ballman created this revision.May 25 2017, 5:39 AM
zturner accepted this revision.May 25 2017, 1:59 PM
This revision is now accepted and ready to land.May 25 2017, 1:59 PM
aaron.ballman closed this revision.May 25 2017, 2:03 PM

Commit in r303913