List Info

Thread: Build requirements bug?




Build requirements bug?
user name
2006-05-25 06:09:00
On Wednesday 24 May 2006 18:52, Pedro Lamarão wrote:
> Vladimir Prus escreveu:
> > Given that you explicitly require version 6.0 in
target requirements,
> > this is an expected result. If you want 6.0 to be
default version, you
> > need to put that to default build:
> >
> >    exe test
> >
> >        : main.cpp
> >        : # no requirements
> >        : <toolset>msvc
> >
> >          <toolset-msvc:version>6.0
> >        ;
>
> Hum...
> Shouldn't that bjam invocation fail?
> My intention is not to make msvc-6.0 the default
compiler, but the only
> compiler where this target builds.

The current behaviour is what is documented:
  
http://boost
.org/boost-build2/doc/html/bbv2/advanced/targets.html#bbv2.a
dvanced.targets.requirements

> It seems weird that I request toolset=msvc-7.1 on the
command line and
> the target builds with another toolset.

If we want nothing to be done in this case, you can add
another "target 
alternative":

   alias test ;

that does nothing and will be used for other toolsets.

- Volodya

-- 
Vladimir Prus
http://vladimir_pru
s.blogspot.com
Boost.Build V2: http://boost.org/boost-
build2
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Build requirements bug?
user name
2006-05-25 14:47:48
Vladimir Prus escreveu:

> The current behaviour is what is documented:
>   
> http://boost
.org/boost-build2/doc/html/bbv2/advanced/targets.html#bbv2.a
dvanced.targets.requirements
> 
>> It seems weird that I request toolset=msvc-7.1 on
the command line and
>> the target builds with another toolset.
> 
> If we want nothing to be done in this case, you can add
another "target 
> alternative":
> 
>    alias test ;

I see. That trick does indeed work for me.

I now see that "The difference between requirements
and default-build is
that requirements cannot be overriden in any way."

But, then, when will bjam fail in this regard? In what
circumstances
does it decide a target is impossible to build?

--
 Pedro Lamarão

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )