Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-03-07 02:58:17


On Monday 06 March 2006 19:48, Bojan Resnik wrote:
> > Thanks, it seems ok now.
> > --
> > Bojan Resnik
>
> Apologies, my mistake - I accidentally compiled with VC7.1.
> In fact, the problem is still there, and it seems that the flag is
> placed in the wrong part of if condition:
>
> --------
> if [ MATCH ^([67]\\.) : $(version) ]
> {
> # ... Stripped
>
> # Improve floating-point accuracy. Otherwise, some of C++ Boost's
> # "math" tests will fail.
> flags msvc.compile CFLAGS : /Op ;
> }
> -------
>
> This will set the /Op flag when the version does not begin with 6
> nor 7.

I must be missing something, as my testing indicates otherwise:

  $ bjam -f-
  ECHO [ MATCH ^([67]\\.) : 7.1 ] ;
  7.

So, given "7.1" the MATCH will return non-empty string, and the condition
should be taked, executing "flags... /Op".

Did you configure msvc with explicit version, like:

  using msvc : 7.1 : ........ ;

- 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