如何只构建boost所需的模块?

Ash*_*mar 21 c++ boost visual-studio-2010

我刚开始编译boost C++库.我发布了以下命令,它构建了整个boost库,这非常耗时,并不是我需要的.

只需解压缩boost_1_49_0.7z归档文件,然后Visual Studio 2010 command line tool运行bootstrap.bat并创建b2可执行文件.

使用这个可执行文件我跑来b2 --toolset=msvc-10.0 --build-type=complete architecture=x86 address-model=64 stage构建库.

此时我只需要构建"信号"模块.

需要向bootstrap创建的可执行文件提供哪些切换命令才能编译和构建那些特定的库?

meg*_*024 30

b2.exe --help 输出以下内容.

--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.

也可以使用该-jX选项并行编译X进程中的BOOST.