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

后端 未结 1 1882
臣服心动
臣服心动 2021-01-12 11:44

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-

相关标签:
1条回答
  • 2021-01-12 12:36

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

    0 讨论(0)
提交回复
热议问题