|
Boost-Build : |
From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-11-15 04:03:51
Reece Dunn wrote:
> Vladimir Prus wrote:
>> On Saturday 12 November 2005 01:48, Reece Dunn wrote:
>>> Volodya/Rene/Dave: Is there a reason why variant debug doesn't define
>>> _DEBUG, but variant release defines NDEBUG. VC projects define _DEBUG
>>> for release builds.
>> As for me, just because I never used or even knew about _DEBUG. I always used
>> NDEBUG for guard debug code. It does not seem that _DEBUG is as universal as
>> NDEBUG, do we really need to add it to "debug" variant? Maybe, only for msvc
>> toolset?
>
> Ok. However, one small note: _DEBUG is used in Windows programs, so it
> may be better in Alexey's forthcoming msplatform.jam where it can be
> used by msvc.jam, intel-win.jam, cw.jam, borland.jam, gcc.jam (Windows),
> et. al.
I have tried adding:
feature.compose <variant>debug : <define>_DEBUG ;
to msvc.jam (actually, msplatformsdj.jam) and get:
F:/devel/bbv2/build\feature.jam:585: in feature.compose from module feature
error: components of <variant>debug already set: <optimization>off
<debug-symbols>on <inlining>off <runtime-debugging>on
F:/devel/bbv2/tools\msplatformsdk.jam:10: in load from module msplatformsdk
F:\devel\bbv2/kernel\modules.jam:261: in import from module modules
F:/devel/bbv2/tools\msvc.jam:23: in load from module msvc
F:\devel\bbv2/kernel\modules.jam:261: in import from module modules
F:/devel/bbv2/build\toolset.jam:25: in using from module toolset
f:/devel\user-config.jam:7: in modules.load from module user-config
F:/devel/bbv2\build-system.jam:115: in load from module build-system
F:\devel\bbv2/kernel\modules.jam:261: in import from module modules
F:\devel\bbv2/kernel/bootstrap.jam:172: in boost-build from module
F:\devel\boost-build.jam:1: in module scope from module
Q: How do I add to an already composed feature?
- Reece
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk