Boost logo

Boost-Build :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-07-22 20:13:37


At 09:51 AM 7/20/2002, David Abrahams wrote:

>> That's what I do for toolset name. But I also need to capture
>> compiler/linker/run messages and other information. That requires
>looking
>> at the action name to be able to distinguish which of the
>> compiler/linker/run messages follow.
>
>I still don't understand what you're saying, or why it's a problem not to
>have 'msvc' in the action name when it appears in the target name
>immediately following on the same line.

Having two different names for a C++ compile means that detection requires
two lines of code instead of one. For example:

if ( line.find( "C++-action " ) != string::npos
|| line.find( "vc-C++ " ) != string::npos

If that were the only special case, it wouldn't be a problem. But there are
quite a few more special cases and irregularities. I'm afraid the code
will be fragile as a result.

Anyhow, maybe V2 can just update the .xml file directly, and I won't have
to worry about it.

--Beman

PS: Here is a sample of one of the .xml files. (It looks better when it
isn't word wrapped in the wrong places by an email program!)

<test-log
target-directory="../status/bin/binary_search_test.test/borland/debug/runtime-link-dynamic"
test-name="binary_search_test" toolset="borland">
<compile result="succeed" timestamp="2002-07-23 00:10:21 UTC">
c:\boost\site\libs/utility\binary_search_test.cpp:
Warning W8092 c:\boost\site\libs/utility\binary_search_test.cpp 125:
template argument Compare passed to 'sort' is not an iterator: random
iterator required in function
sort_by_value&ltstd::list&ltstd::string,std::allocator&ltstd::string&gt &gt
&gt(std::list&ltstd::string,std::allocator&ltstd::string&gt &gt &amp)
Warning W8012 d:\Program Files\Borland\Bcc55\include\list.cc 308: Comparing
signed and unsigned values in function sort&ltcmp&gt(cmp)
Warning W8012 d:\Program Files\Borland\Bcc55\include\list.cc 312: Comparing
signed and unsigned values in function sort&ltcmp&gt(cmp)
</compile>
<link result="succeed" timestamp="2002-07-23 00:10:21 UTC"></link>
<run result="succeed" timestamp="2002-07-23 00:10:21 UTC">
=== testing random-access iterators with &lt: ===
found 2 copies of 988 at index 985
found 0 copies of 9 at index 7
found 0 copies of 22 at index 18
found 2 copies of 616 at index 656
found 1 copies of 819 at index 809
found 0 copies of 854 at index 859
found 1 copies of 138 at index 134
found 0 copies of 144 at index 150
found 0 copies of 237 at index 246
found 0 copies of 330 at index 330
found 1 copies of 251 at index 271
found 0 copies of 825 at index 835
found 0 copies of 120 at index 120
found 1 copies of 594 at index 627
found 1 copies of 575 at index 584
found 1 copies of 975 at index 972
found 1 copies of 544 at index 562
found 0 copies of 701 at index 699
found 4 copies of 385 at index 393
found 2 copies of 268 at index 255
found 1 copies of 137 at index 122
found 0 copies of 970 at index 981
found 0 copies of 752 at index 749
found 1 copies of 446 at index 438
found 1 copies of 170 at index 156
=== testing random-access iterators with compare: ===
found 0 copies of 148 at index 152
found 1 copies of 959 at index 961
found 0 copies of 34 at index 38
found 1 copies of 395 at index 392
found 2 copies of 47 at index 35
found 0 copies of 111 at index 106
found 0 copies of 151 at index 154
found 1 copies of 361 at index 335
found 1 copies of 151 at index 140
found 1 copies of 634 at index 644
found 0 copies of 749 at index 767
found 0 copies of 712 at index 688
found 2 copies of 966 at index 965
found 0 copies of 834 at index 829
found 2 copies of 127 at index 115
found 0 copies of 641 at index 637
found 1 copies of 742 at index 751
found 3 copies of 74 at index 65
found 1 copies of 894 at index 903
found 1 copies of 157 at index 157
found 2 copies of 360 at index 343
found 0 copies of 12 at index 13
found 1 copies of 560 at index 566
found 2 copies of 513 at index 478
found 0 copies of 924 at index 926
=== testing bidirectional iterators with &lt: ===
found 0 copies of 460 at index 442
found 5 copies of 361 at index 364
found 0 copies of 571 at index 575
found 2 copies of 626 at index 630
found 0 copies of 428 at index 438
found 0 copies of 433 at index 462
found 1 copies of 260 at index 260
found 0 copies of 648 at index 618
found 0 copies of 792 at index 791
found 0 copies of 797 at index 800
found 2 copies of 951 at index 952
found 1 copies of 372 at index 371
found 0 copies of 523 at index 557
found 2 copies of 26 at index 13
found 2 copies of 146 at index 170
found 2 copies of 964 at index 962
found 2 copies of 290 at index 289
found 0 copies of 823 at index 832
found 0 copies of 468 at index 474
found 2 copies of 740 at index 752
found 1 copies of 928 at index 935
found 0 copies of 386 at index 388
found 2 copies of 711 at index 696
found 3 copies of 192 at index 195
found 1 copies of 963 at index 970
=== testing bidirectional iterators with compare: ===
found 1 copies of 727 at index 735
found 1 copies of 735 at index 750
found 1 copies of 883 at index 891
found 0 copies of 534 at index 523
found 1 copies of 787 at index 799
found 1 copies of 89 at index 88
found 0 copies of 726 at index 727
found 1 copies of 199 at index 211
found 0 copies of 479 at index 483
found 1 copies of 480 at index 460
found 0 copies of 476 at index 447
found 1 copies of 907 at index 900
found 3 copies of 459 at index 435
found 1 copies of 805 at index 812
found 1 copies of 166 at index 153
found 2 copies of 455 at index 434
found 0 copies of 321 at index 312
found 1 copies of 85 at index 92
found 1 copies of 90 at index 96
found 2 copies of 177 at index 178
found 0 copies of 868 at index 847
found 0 copies of 745 at index 747
found 1 copies of 82 at index 85
found 1 copies of 807 at index 816
found 2 copies of 431 at index 456
******TEST PASSED******
</run>
</test-log>

 


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