List Info

Thread: V2 questions




V2 questions
country flaguser name
United States
2007-09-05 06:10:19
How do I test with multiple toolsets?

How do I apply the /EHa to all msvc builds and tests that
use
execution_monitor.ipp (to deal with the msvc
"......boost/test/impl/execution_monitor.ipp(214) :
warning C4535:
calling _set_se_translator() requires /EHa" warning?

Why does 20 minutes of searching the documentation not turn
up the
answers to such simple questions? Why doesn't the tutorial
cover such
basic tasks?

Frustrated-again-by-bjam,

--Beman

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

Re: V2 questions
country flaguser name
Russian Federation
2007-09-05 11:00:12
On Wednesday 05 September 2007 15:10:19 Beman Dawes wrote:
> How do I test with multiple toolsets?

You specify multiple toolsets on command line. As in:

	toolset=msvc toolset=borland

> How do I apply the /EHa to all msvc builds and tests
that use
> execution_monitor.ipp (to deal with the msvc
>
"......boost/test/impl/execution_monitor.ipp(214) :
warning C4535:
> calling _set_se_translator() requires /EHa"
warning?

What do you mean? Do you expect to find all sources that
include, directly
or indirectly, execution_monitor.ipp and apply some option?
Do you really
think it's a basic task? No build system I know provide
built-in mechanisms to
do that?

> Why does 20 minutes of searching the documentation not
turn up the
> answers to such simple questions? Why doesn't the
tutorial cover such
> basic tasks?

Did you see 

	http://boost.org/boost-build2
/doc/html/bbv2/reference.html#bbv2.reference.init.args

and found that bad? Not that it explicitly tells you can
request two toolsets at a time, but
it should that two values of other features are possible. As
for the second question, it's not
basic at all, unless I misunderstood you.

- Volodya
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: V2 questions
country flaguser name
United States
2007-09-10 09:12:58
Vladimir Prus wrote:
> On Wednesday 05 September 2007 15:10:19 Beman Dawes
wrote:
>> How do I test with multiple toolsets?
> 
> You specify multiple toolsets on command line. As in:
> 
> 	toolset=msvc toolset=borland

Ah! I was trying things like toolset="msvc
borland"

None of the http
://www.boost.org/doc/html/bbv2/tutorial.html hello world

examples invoke bjam with multiple requests. None even
invoke with a 
single toolset request. bjam --help and its variants don't
offer any 
help either.

Also, it is hard to find the link to the html docs. From the
boost.org 
main page, you have to know that Boost.Build is considered a
"tool".

Once you figure that out, and get to the 
http:/
/www.boost.org/tools/build/v2/index.html page, the Quick
access 
section has a line that reads "Documentation
(PDF)", with 
"Documentation" linked to the HTML version and
"PDF" linked to the PDF 
version. I had no idea there was an HTML version until I say
your 
reference below. Apparently every time I have clicked on
"PDF" rather 
than "Documentation". It would be helpful if you
changed the line to 
"Documentation (HTML, PDF)" with appropriate
links.

> 
>> How do I apply the /EHa to all msvc builds and
tests that use
>> execution_monitor.ipp (to deal with the msvc
>>
"......boost/test/impl/execution_monitor.ipp(214) :
warning C4535:
>> calling _set_se_translator() requires /EHa"
warning?
> 
> What do you mean? Do you expect to find all sources
that include, directly
> or indirectly, execution_monitor.ipp and apply some
option? Do you really
> think it's a basic task? No build system I know provide
built-in mechanisms to
> do that?

I'll rephrase the question. How do I apply a compiler switch
in my 
Jamfile to builds for one specific toolset. How do I apply
the switch 
for that toolset, but only on one specific platform?

> 
>> Why does 20 minutes of searching the documentation
not turn up the
>> answers to such simple questions? Why doesn't the
tutorial cover such
>> basic tasks?
> 
> Did you see 
> 
> 	http://boost.org/boost-build2
/doc/html/bbv2/reference.html#bbv2.reference.init.args
> 
> and found that bad? Not that it explicitly tells you
can request two toolsets at a time, but
> it should that two values of other features are
possible.

That was one of the sections I looked at. Not sure why it
confused me. 
It would be a little easier if the full command line
(beginning with 
"bjam") was shown.

Thanks,

--Beman

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

Re: V2 questions
country flaguser name
Sweden
2007-09-11 01:24:20
Beman Dawes wrote:
> Vladimir Prus wrote:
>> On Wednesday 05 September 2007 15:10:19 Beman Dawes
wrote:

[snip]

>>
>>> How do I apply the /EHa to all msvc builds and
tests that use
>>> execution_monitor.ipp (to deal with the msvc
>>>
"......boost/test/impl/execution_monitor.ipp(214) :
warning
>>> C4535: calling _set_se_translator() requires
/EHa" warning?
>>
>> What do you mean? Do you expect to find all sources
that include,
>> directly
>> or indirectly, execution_monitor.ipp and apply some
option? Do you
>> really
>> think it's a basic task? No build system I know
provide built-in
>> mechanisms to
>> do that?
>
> I'll rephrase the question. How do I apply a compiler
switch in my
> Jamfile to builds for one specific toolset. How do I
apply the switch
> for that toolset, but only on one specific platform?

Off the top of my head, and assuming that you by
"platform" refer to the 
toolset, something like the following should work:

project
  : requirements
  <toolset>msvc:<asynch-exceptions>on
  ...
  ;


If you really need to do this based by platform as well
(which shouldn't be 
needed in this case):

project
  : requirements
 
<os>NT,<toolset>msvc:<asynch-exceptions>on

  ...
  ;


HTH / Johan


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

Re: V2 questions
country flaguser name
United States
2007-09-11 09:47:25
Johan Nilsson wrote:
> If you really need to do this based by platform as well
(which shouldn't be 
> needed in this case):
> 
> project
>   : requirements
>  
<os>NT,<toolset>msvc:<asynch-exceptions>on

>   ...
>   ;

Please use the more portable:

  
<target-os>windows,<toolset>msvc:<asynch-exce
ptions>on




-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software
.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: V2 questions
country flaguser name
United States
2007-09-11 13:33:09
on Tue Sep 11 2007, Rene Rivera
<grafikrobot-AT-gmail.com> wrote:

>> Huh? Is this a recently added feature? Is it
documented?
>
> It's been around for a year 
> <h
ttp://svn.boost.org/trac/boost/changeset/34889>,
hence it's only in 
> the SVN version. 

I added fairly extensive support for the host-os and
target-os
features that was released in 1.34.1

-- 
Dave Abrahams
Boost Consulting
http://www.boost-cons
ulting.com

The Astoria Seminar ==> http://www.astoriasemin
ar.com

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

Re: V2 questions
country flaguser name
Sweden
2007-09-12 01:39:13
Rene Rivera wrote:
> Johan Nilsson wrote:
>> If you really need to do this based by platform as
well (which
>> shouldn't be needed in this case):
>>
>> project
>>   : requirements
>>  
<os>NT,<toolset>msvc:<asynch-exceptions>on

>>   ...
>>   ;
>
> Please use the more portable:
>
>  
<target-os>windows,<toolset>msvc:<asynch-exce
ptions>on
>
> 

I would love to, if I just would have known about it 

I found some references to (host|target)-os in the
Boost.Build mailing list 
archive, but it would be great if you(?) could add the
target-os (and 
host-os) definitions and their intended usage to:

http://www.boost.org/boost-build2
/doc/html/bbv2/advanced/builtins/features.html

Any other undocumented built-in features out there?

/ Johan


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

[1-7]

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