[cfe-dev] Building Clang on Windows

Fábio Picchi via cfe-dev cfe-dev at lists.llvm.org
Wed Oct 3 14:19:06 PDT 2018


Debug!

On Wed, Oct 3, 2018 at 5:14 PM Nico Weber <thakis at chromium.org> wrote:

> Are you building debug or release? If debug, try building release.
>
> On Wed, Oct 3, 2018 at 3:18 PM Fábio Picchi via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
>> Yes, I did pass the option *-Thost=x64 *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.
>>
>> On Wed, Oct 3, 2018 at 3:19 PM Stephan T. Lavavej <
>> stl at exchange.microsoft.com> wrote:
>>
>>> 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.)
>>>
>>>
>>>
>>> STL
>>>
>>>
>>>
>>> *From:* cfe-dev <cfe-dev-bounces at lists.llvm.org> *On Behalf Of *Fábio
>>> Picchi via cfe-dev
>>> *Sent:* Wednesday, October 3, 2018 9:56 AM
>>> *To:* cfe-dev at lists.llvm.org
>>> *Subject:* [cfe-dev] Building Clang on Windows
>>>
>>>
>>>
>>> Hello everyone,
>>>
>>>
>>>
>>> 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.
>>>
>>>
>>>
>>> With this in mind I tried to build clang following the instructions here
>>> <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>
>>> and everything went fine until I actually tried to compile the *clang*
>>> project using visual studio. I got a *compiler is out of heap space*
>>> error which surprised me as I had previously built big projects such as the
>>> Dolphin Emulator without a problem.
>>>
>>>
>>>
>>> I detailed some of my failed attempts to fix this issue in this SO
>>> question
>>> <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>.
>>> Do you have any suggestions?
>>>
>>>
>>>
>>> Best regards,
>>>
>>> Fabio Picchi
>>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20181003/b0cfa5f0/attachment.html>


More information about the cfe-dev mailing list