Why does bjam seem to ignore my arguments?

做~自己de王妃 提交于 2020-01-16 05:10:06

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/8610198/why-does-bjam-seem-to-ignore-my-arguments

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!