Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-03-07 08:00:08


On Tuesday 07 March 2006 15:15, Bojan Resnik wrote:

> You are correct in that MSVC8 is not matched by the if I mentioned,
> my mistake. However, this is the line used to compile Template.cpp
> with MSVC8 (output from bjam --v2 -ooutfile):
> --------
> call "D:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86
> >nul cl /Zm800 -nologo -TP /Z7 /Od /Ob0 /W3 /GR /MDd /Op /Op /Zc:forScope
> /Zc:wchar_t /wd4675 /EHs
> @"..\..\..\..\Target\NT\et\rhrep\msvc-8\debug\link-static\Template.obj.rsp"
> -c
> -Fo"..\..\..\..\Target\NT\et\rhrep\msvc-8\debug\link-static\Template.obj"
> -Yu"precompiled.hpp"
> -Fp"..\..\..\..\Target\NT\et\rhrep\msvc-8\debug\link-static\et_rhrep_lib__p
>recompiled.pch" --------
>
> Note that there are two (!) /Op flags in the command line. Is there
> any debugging information I could provide, from a -d option or
> something like that?

Ah, it seems I forget some of the magic spells. The line:

  flags msvc.compile CFLAGS : /Op ;

Add /Op to command line for *all* msvc versions, not just for the current one.
You have two non-8.0 versions, so the option is added twice and shows twice
in all msvc compilers.

I've just comitted change of that line to:

  flags msvc.compile CFLAGS $(condition) : /Op ;

which should fix this. I've tested on Linux with "bjam -n", can you try again
on real msvc?

Thanks,
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