Boost logo

Boost-Build :

Subject: [Boost-build] [user config] conditional toolset options?
From: Julian Gonggrijp (j.gonggrijp_at_[hidden])
Date: 2011-08-24 10:12:49


Hi,

This is what I'd like to do:

# user-config.jam

using darwin : :
    : <variant>debug:<compileflags>-Wextra ;

using clang : :
    : <variant>debug:<compileflags>-fcatch-undefined-behaviour ;

but bjam doesn't support this. Now, in the case of -Wextra it doesn't hurt that much to also specify the flag for release builds, but -fcatch-undefined-behaviour in Clang is really something you want to do for debug builds only.

Is there another way to achieve the same effect?
If there isn't, would this stand a chance if I filed it as a feature request?

Thanks,
-Julian


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