Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-08-03 08:01:55


On Wednesday 03 August 2005 16:42, John Maddock wrote:

> Some issues:
>
> 1) If the I use the default msvc toolset, with just a "using msvc ; " in
> the user-config.jam then the libraries get mangled with "-vc" as the
> toolset name, but of course autolinking expects "-vc71". I'm guessing that
> when we switch to bbv2 for a release that 90% of users will just want the
> default option to "just work", I'm not sure how we fix this though.
> 2) I haven't kept up with all the discussion on this list, but I thought
> there was a patch to make msvc detection "just work" so that no changes to
> user-config.jam were necessary? It sure would make life easier for new
> users if bjam just configured itself without any need to go editing files
> and placing them in some specific path first.

Yes, that was discussed and I hope some solution will be implemented.

> 3) I can fix (1) by adding "using msvc : 7.1 ;" to the user-config.jam, but
> name mangling is still wrong, bjam is producing a "-mt-d" suffix for the
> library, but "-mt-gd" is expected.

Can you try with the attached patch?

I have a couple of questions though:

1. Dave, I suspect that <runtime-debugging> feature was added by you,
as you authored most of msvc.jam. Maybe, we should rename it to
<runtime-build> to be compatible with V1.

2. Rene, it looks like "-g" (for runtime-debugging) is added only on Windows.
At least I don't get it on gcc/Linux. But I can't find the logic that
distinguish between NT and Unix. Can you point me to the code?

Thanks,
Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2
 --Boundary-00=_EBM8Ce3I93+LEEf Content-Type: text/x-diff;
charset="koi8-r";
name="stage.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="stage.diff"
Index: stage.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/stage.jam,v
retrieving revision 1.70
diff -u -r1.70 stage.jam
--- stage.jam	3 Aug 2005 11:43:04 -0000	1.70
+++ stage.jam	3 Aug 2005 12:58:45 -0000
@@ -436,7 +436,7 @@
local runtime-tag = ;
if <runtime-link>static in $(properties) { runtime-tag += s ; }
- if <runtime-build>debug in $(properties) { runtime-tag += g ; }
+ if <runtime-debugging>on in $(properties) { runtime-tag += g ; }
if <variant>debug-python in $(properties) { runtime-tag += y ; }
if <variant>debug in $(properties) { runtime-tag += d ; }
 --Boundary-00=_EBM8Ce3I93+LEEf-- 

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