<div dir="ltr"><div>Are you building debug or release? If debug, try building release.</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 3, 2018 at 3:18 PM Fábio Picchi via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace;font-size:small;color:#000000">Yes, I did pass the option <i>-Thost=x64 </i>to cmake. Also, I am trying
to compile clang on Visual Studio 2017 and my PC has 8GB of RAM.
Finally, I didn't have anything running during the build.</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 3, 2018 at 3:19 PM Stephan T. Lavavej <<a href="mailto:stl@exchange.microsoft.com" target="_blank">stl@exchange.microsoft.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_-1217625606409086068m_3811380846469695942WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif">Did you use the 64-bit hosted compiler? (I think Clang's instructions should be rewritten to assume VS 2017 and 64-bit hosting, instead of saying it's optional.)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif">STL<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><b>From:</b> cfe-dev <<a href="mailto:cfe-dev-bounces@lists.llvm.org" target="_blank">cfe-dev-bounces@lists.llvm.org</a>> <b>On Behalf Of
</b>Fábio Picchi via cfe-dev<br>
<b>Sent:</b> Wednesday, October 3, 2018 9:56 AM<br>
<b>To:</b> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<b>Subject:</b> [cfe-dev] Building Clang on Windows<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New";color:black">Hello everyone,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New";color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New";color:black">This week I tried to use clang on my windows setup and was very happy to see how the site invited people to get involved and contribute to the project.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New";color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New";color:black">With this in mind I tried to build clang following the instructions
<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fclang.llvm.org%2Fget_started.html&data=02%7C01%7Cstl%40exchange.microsoft.com%7Cf5b43d9b24cc41afcf8108d629512a61%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636741825921297608&sdata=vjX9cIbH21gM5nj8Or2rEv5QLmub74e3I7kiXQdR%2BbU%3D&reserved=0" target="_blank">
here</a> and everything went fine until I actually tried to compile the <b>clang</b> project using visual studio. I got a
<i>compiler is out of heap space</i> error which surprised me as I had previously built big projects such as the Dolphin Emulator without a problem.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New";color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New";color:black">I detailed some of my failed attempts to fix this issue in this
<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F52628064%2Fbuilding-clang-on-windows-memory-usage&data=02%7C01%7Cstl%40exchange.microsoft.com%7Cf5b43d9b24cc41afcf8108d629512a61%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636741825921297608&sdata=Lc37LhErZm5eU%2Fpcp45qmVeynBLKklcjuhR%2F5fNejf0%3D&reserved=0" target="_blank">
SO question</a>. Do you have any suggestions?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New";color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New";color:black">Best regards,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Courier New";color:black">Fabio Picchi<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</blockquote></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>