how to determine value of cxxflags in bjam? Or append to it?

蓝咒 提交于 2020-01-11 05:03:22

问题


I need to add to compiler flags using bjam. So either I need a way to append to the existing flags -- like CXXFLAGS+=whatever using gmake -- or I need to know the currently-used value of cxxflags so I can replace it with my additions.

As usual, the documentation leaves me astonished at the complexity of bjam but no closer to being able to do anything useful with it.


回答1:


If you are only looking to do this on the command line you can add flags by specifying "feature=value" arguments. In the case of the make CXXFLAGS the corresponding would be "cxxflags=--some-option". Refer to the Boost Build docs section on built-in features for other such possible features to use. If you are using Boost Build as your build system, and hence need to specify them in your Jamfiles, then you need to add requirements to you project and/or targets (see BB projects and BBv2 targets).



来源:https://stackoverflow.com/questions/2722421/how-to-determine-value-of-cxxflags-in-bjam-or-append-to-it

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