Windows 10 上的最新 CMake 和 LLVM

Latest CMake and LLVM on Windows 10

全部

最新的 LLVM 是 7.0,它在 Windows 10 x64、构建本机可执行文件等方面运行良好

最新的 CMake 是 3.12.x.

我也安装了 VS 2017 Pro。

下载了它们并尝试在 Windows 上用它制作简单的项目,但它没有用,即使我设置 CC/CXX,链接器指向 lld,编译测试失败问题, 未找到 rc(资源编译器)。

尝试将 GNU make 和 Ninja 作为构建系统。

这是受支持的配置吗?如果是,如何让它发挥作用?

基本上,我想将 CMake/LLVM 与 editor/terminal 一起使用,就像我在 Linux

上做的那样

运行 来自 Developer Command Prompt 的 CMake。 这应该使 rc 在您的 PATH 中可用,然后 CMake 应该能够找到它。