From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-10-27 12:57:03
Renaud Lepere wrote:
>I'm new to bjam and i would like to use it in order to
>replace msvc/projects and settings.
You might want to check out
in the Wiki. This is still under construction and would love some
help/feedback on it. Note that some of the documentation in there will refer
to the latest CVS version of BBv2.
>I would like to build some special versions for
>profiling/testing. These versions must set some flags
>for the compiler/linker (symbols in release).
BBv2 has support for profiling, instead of:
bjam msvc-7.1 release
bjam msvc-7.1 profile
>I tried to add those flags in my user-config.jam
>using msvc : 7.1 : : <cxxflags>/Zi <linkflags>/fixed:no ;
It would be better to use <debug-symbols>on instead of using the /Zi switch
directly. I am not sure what /fixed:no does.
>But i didn't succeed, i have some problems and questions.
>1. When i call bjam -d2, i can't see the linker flags
> "/fixed:no", are they included in the response-file ?
> How can i see the response-file ?
The response files are stored in the build directory. Thus, if you are
building main.cpp, you will have
where main.obj.rsp is the response file. This just contains the <include>
and <define> properties, along with the source files for the target. The
linker flags should be visible from the link command line.
>2. How can i define a new configuration/variant with those
> special flags such that i can call "bjam profiling" ?
See above :). If you look in boost/tools/build/v2/tools/builtin.jam (or
common.jam) and look for the debug, release and profile variant setup,
that's how it's done ;).
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