Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-03-04 01:52:10


On Tuesday 26 February 2008 11:57:25 Yang Zhang wrote:
> Hi, I'm just getting started with BB, and I had a couple of questions I
> couldn't find answers to in the docs (though I have not very thoroughly
> read through it, esp. the language details sections):
>
> - I'd like to have debug mode use -g3 rather than -g always. I know I
> can simply do:
>
> exe a : a.cc : <toolset>gcc:<cxxflags>-g3 ;
>
> but I'm wondering if I can do this (1) globally and (2) actually
> changing the -g to be a -g3 (rather than appending a flag to the
> command-line).

No, but I believe -g3 will appear after -g and will override it.

> - Are there any repositories of recipes/extensions/etc. for BB? E.g.,
> when I'm writing my own variants or other extensions, perhaps others out
> there have already done what I wanted, and perhaps more eyes lead to
> better such extensions.

I don't know. IIRC Rene was setting up something.

> - Are there any Apache Maven-like tools that could work with BB (like
> DART for CMake)? I'm mainly thinking of things like project status
> dashboards, test/style reports, continuous integration across projects,
> etc., and not the automatic dependency downloading.

I don't know any.

>
> - Are there tools (inside BB or outside) that can produce packaging of
> any kind? (Anything from binary .deb's to autotools-based source packaging.)

Well, I believe that both dpkg and rpm will be happy to convert any
installed tree into a package.

>
> - Is there any way to get BB to use gcc's -M flag for finding full paths
> to dependencies (when that's available)? This is esp. helpful if I am
> modifying header files that globally shared (either in
> /usr/local/include, or another location like /opt/include but via
> CPATH/CXX_INCLUDE_PATH/etc.), and don't want to explicitly mention
> /usr/local/include in all my Jamfiles (which works since then BB would
> know what files' timestamps to watch - I tested this).

No, this is not supported.

>
> - Does BB support ccache-like functionality?

Yes. I think if you configure gcc, in you user-config.jam, as:

        using gcc : : ccache g++ ;

it should just work. I've did similar with distcc.

> Also, does it support
> pre-compiled headers out of the box?

Yes, on gcc and msvc. See the documentation for instructions.

- Volodya


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