为什么 bjam 似乎忽略了我的论点?
我正在尝试使用 bjam 构建 boost.lib,但无论我做什么,我都无法让它识别我的 BOOST_LOG_NO_COMPILER_TLS
标志。我是这样构建的:
bjam address-model=32 --toolset=msvc-10.0 --build-type=complete
--with-log variant=debug link=static runtime-link=static
define=BOOST_LOG_NO_COMPILER_TLS stage
为了验证它是否忽略了该标志,我在使用和不使用该标志的情况下进行了编译,并使用 Beyond Compare 来比较阶段文件夹中生成的每个文件。
所有的 lib 文件都是相同的。如果 bjam 识别我的 define
字段,我会期望有所不同。
我是 boost 和 bjam 的新手,所以我做错了什么吗?
I'm trying to build boost.lib with bjam, but no matter what I do, I can't get it to recognise my BOOST_LOG_NO_COMPILER_TLS
flag. I'm building like this:
bjam address-model=32 --toolset=msvc-10.0 --build-type=complete
--with-log variant=debug link=static runtime-link=static
define=BOOST_LOG_NO_COMPILER_TLS stage
To verify that it's ignoring the flag, I compiled with and without this flag and used Beyond Compare to compare each file generated in the stage folder.
All of the lib files were identical. I would expect differences if bjam was recognising my define
fields.
I'm new to boost and bjam, so am I doing something wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,即使我指定了
--build-type=complete
,它实际上并没有重新编译内容。如果您的
bin.v2
文件夹中有内容,它不会覆盖它。删除 bin.v2 文件夹或为 bjam 指定一些其他未知的神奇参数。It turns out that it wasn't actually recompiling stuff, even though I specified
--build-type=complete
.If you have stuff in your
bin.v2
folder, it won't overwrite it. Either delete thebin.v2
folder or specify some other unknown magical parameter to bjam.