问题
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