简体   繁体   English

如何确定bjam中cxxflags的值? 还是附加到它?

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

I need to add to compiler flags using bjam. 我需要使用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. 所以要么我需要一种方法来附加到现有的标志 - 比如CXXFLAGS + =使用gmake的任何东西 - 或者我需要知道当前使用的cxxflags值所以我可以用我的添加替换它。

As usual, the documentation leaves me astonished at the complexity of bjam but no closer to being able to do anything useful with it. 像往常一样,文档让我对bjam的复杂性感到惊讶,但没有能够对它做任何有用的事情。

If you are only looking to do this on the command line you can add flags by specifying "feature=value" arguments. 如果您只想在命令行上执行此操作,则可以通过指定“feature = value”参数来添加标志。 In the case of the make CXXFLAGS the corresponding would be "cxxflags=--some-option". 在make CXXFLAGS的情况下,相应的将是“cxxflags = - some-option”。 Refer to the Boost Build docs section on built-in features for other such possible features to use. 有关要使用的其他此类可能功能,请参阅内置功能的Boost Build文档部分。 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 ). 如果您使用Boost Build作为构建系统,因此需要在Jamfiles中指定它们,那么您需要向项目和/或目标添加需求(请参阅BB项目BBv2目标 )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM