How to build boost required modules only?

旧时模样 提交于 2020-01-11 18:09:35

问题


I just started compiling boost C++ libraries. With the following commands I issued it is building whole of the boost libraries, which is time consuming, and is not necessary for my need.

Just unpacked the boost_1_49_0.7z archive and from Visual Studio 2010 command line tool I ran bootstrap.bat and it created the b2 executable.

Using this executable I ran b2 --toolset=msvc-10.0 --build-type=complete architecture=x86 address-model=64 stage to build the libraries.

At this moment all I need is the "signals" module to be built.

What switch commands need to be supplied to the bootstrap created executable to compile and build only those specific libraries?


回答1:


b2.exe --help outputs the following.

--show-libraries Displays the list of Boost libraries that require build and installation steps, then exit.

--with-<library> Build and install the specified <library> If this option is used, only libraries specified using this option will be built.

Also is possible to use the -jX option to compile BOOST in X processes in parallel.



来源:https://stackoverflow.com/questions/10022180/how-to-build-boost-required-modules-only

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