[llvm-dev] LLVM_TARGETS_TO_BUILD

Flamedoge via llvm-dev llvm-dev at lists.llvm.org
Mon Feb 27 21:14:03 PST 2017


Available targets should be found at
https://github.com/llvm-mirror/llvm/blob/master/CMakeLists.txt#L306

And CMake for Windows should have
The following generators are available on this platform:
  Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
                                 Optional [arch] can be "Win64" or "ARM".

So I'd suggest:
cmake -DLLVM_TARGETS_TO_BUILD=x86 -G "Visual Studio 14 2015 Win64"

Regards,
Kevin

On Mon, Feb 27, 2017 at 8:22 PM, John Cortell via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Thanks! That should get me on the right track.
>
> Direct reply was accidental. Thanks for putting me back on the list :-)
>
> I'll repost with details once I've got it working.
>
> On Mon, Feb 27, 2017 at 10:00 PM, Tim Northover <t.p.northover at gmail.com>
> wrote:
>
>> Hi John,
>>
>> [Adding llvm-dev again; best to keep these things in the open so they
>> show up in future searches].
>>
>> On 27 February 2017 at 19:46, John Cortell <john.cortell at gmail.com>
>> wrote:
>> > After building the solution cmake gave me (with X86), I got those
>> libraries
>> > I wanted, but they appear to be 32-bit. I need 64-bit versions.
>>
>> Ah, that was my second guess. My limited reading suggests that Windows
>> has completely separate compilers to produce x64 and x32
>> libraries/binaries. A bit of grubbing around the internet suggests
>> CMake exposes this with the CMAKE_GENERATOR_PLATFORM variable, and -A
>> on the command line. So I'd suggest:
>>
>> c:\cmake-3.8.0-rc1-win64-x64\bin\cmake.exe
>> -DLLVM_TARGETS_TO_BUILD=x86_64 -G "Visual Studio 14" -A Win64
>>
>> (plus a path to the source). That last argument is a bit of a guess,
>> but fits in with documentation at
>> https://cmake.org/cmake/help/v3.8/generator/Visual%20Studio%
>> 2014%202015.html
>> (for example).
>>
>> Hope this works out for you.
>>
>> Tim.
>>
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170227/87f0d475/attachment.html>


More information about the llvm-dev mailing list