b2 的命令参数,以便使用 Microsoft 的 Clang/C2 构建 Boost 库
Command parameters for b2 in order to build Boost libraries with Microsoft's Clang/C2
我一直试图在Windows中使用b2编译Boost库,但使用Clang/C2(Clang 3.7与Microsoft CodeGen(,但没有成功。由于VisualStudio在构建时提供了几个可供使用的工具集,因此指定哪一个似乎不太困难。我看到了另一篇关于"在windows上使用clang 3.8构建boost"的帖子,但他建议将其用作b2的命令行是错误的,因为它并没有真正从MSVC调用clang编译器。使用以下命令行发帖的人员:
b2 --build-dir=build toolset=clang --build-type=complete stage
我对b2和Boost.构建工具不熟悉。。。我只想使用带有Clang/C2的MSVC的Boost,而不是默认的编译器。
如有任何反馈,我们将不胜感激。。
Juan Dent
BTW:我正在使用Visual Studio 2015更新3。
boost
支持mac os x
上的clang
,因此它应该在windows
和linux
上构建。
在windows
上,默认情况下为visual studio
生成boost
。当为mingw
构建时,我在b2
之前运行bootstrap.bat mingw
。因此,要在windows
上为clang
构建,请确保clang
在PATH
中,并尝试:
cd boost_1_xx_0
bootstrap.bat clang
b2 -j8 toolset=clang address-model=64 architecture=x86 --build-dir=build --build-type=complete stage
相关文章:
- 奇怪的结构&GCC&clang(void*返回类型)
- 数据成员SFINAE的C++17测试:gcc vs clang
- 当我编译webrtc服务器时,Windows上只支持clang-cl
- 为什么在Windows上的VS 2019和Clang 9中"size_t"在没有标题的情况下工作
- 我可以将一个用clang c++11编译的对象与另一个用c++17编译的对象链接起来吗
- Clang bug?使用指针作为模板参数
- clang整洁10忽略了我的NOLINT命令
- 如何防止clang格式在流运算符调用之间添加换行符<<
- 在clang++预处理器中确定gcc工具链版本
- 为什么 Clang 不允许"and"作为函数名称?
- 带有 -stdlib=libc++ 的 clang++ 9.0.1 找不到<optional>
- clang格式:宏的缩进
- CLANG 编译器 说:变量"PTR"可能未初始化
- clang格式:禁用排序包含
- 为什么lambda在clang上崩溃而不是在gcc上崩溃
- gcc和clang在表达式是否为常量求值的问题上存在分歧
- 循环展开 - G++ 与 Clang++
- Clang/C2 是否使用与 Clang/LLVM 相同的语义分析和 AST?
- 如何使用带有 clang/c2 的 boost asio
- b2 的命令参数,以便使用 Microsoft 的 Clang/C2 构建 Boost 库