为什么 bjam 似乎忽略了我的论点?

发布于 2024-12-22 16:35:53 字数 485 浏览 4 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

离笑几人歌 2024-12-29 16:35:53

事实证明,即使我指定了 --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 the bin.v2 folder or specify some other unknown magical parameter to bjam.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文