Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate 64 bit Visual Studio project for LLVM using CMake?

I have downloaded LLVM source repository form http://releases.llvm.org/download.html.

Now when I am running CMAKE in the source directory it is generating 32bit Visual Studio Projects but I want to generate 64 bit visual studio projects. If someone has already tried please help.

I have gone through the document https://llvm.org/docs/GettingStartedVS.html and certainly as mentioned -Thost=x64 option is not working.

like image 539
Sanjit Kumar Mishra Avatar asked Dec 12 '17 06:12

Sanjit Kumar Mishra


1 Answers

You need to choose the Visual Studio 15 2017 Win64 generator using the option -G.

like image 76
arrowd Avatar answered Oct 12 '22 22:10

arrowd