[PATCH] D33547: Updated getting started guide for visual studio + cmake
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 25 05:39:31 PDT 2017
aaron.ballman created this revision.
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 https://reviews.llvm.org/D33546 for LLVM's side of things.
@@ -196,6 +196,10 @@
<li><tt>mkdir build</tt> (for building without polluting the source dir)</li>
<li>If you are using Visual Studio 2013: <tt>cmake -G "Visual Studio 12" ..\llvm</tt></li>
+ <li>By default, the Visual Studio project files generated by CMake use the
+ 32-bit toolset. If you are developing on a 64-bit version of Windows and
+ want to use the 64-bit toolset, pass the ``-Thost=x64`` flag when
+ generating the Visual Studio solution. This requires CMake 3.8.0 or later.</li>
<li>See the <a href="http://www.llvm.org/docs/CMake.html">LLVM CMake guide</a> for
more information on other configuration options for CMake.</li>
<li>The above, if successful, will have created an LLVM.sln file in the
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 934 bytes
Desc: not available
More information about the cfe-commits