如何使用CMake为LLVM生成64位Visual Studio项目? [英] How to generate 64 bit Visual Studio project for LLVM using CMake?

查看:422
本文介绍了如何使用CMake为LLVM生成64位Visual Studio项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了LLVM源存储库格式 http://releases.llvm.org/download.html .

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

现在,当我在源目录中运行CMAKE时,它正在生成32位Visual Studio项目,但我想生成64位Visual Studio项目.如果有人已经尝试过,请帮助.

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.

我浏览了文档 https://llvm.org/docs/GettingStartedVS.html并且肯定如前所述-Thost=x64选项不起作用.

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

推荐答案

您需要使用选项-G选择Visual Studio 15 2017 Win64生成器.

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

这篇关于如何使用CMake为LLVM生成64位Visual Studio项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆