Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-10-21 10:44:45


I want to suppress certain warnings that the GCC compiler generates for
serialization tests. This entail adding some switches to the gcc command
line. So in my Jamfile I make the following modification:

rule run-template ( test-name : sources * : requirements * ) {

return [

run

<lib>../../test/build/boost_test_exec_monitor

$(sources)

: # command

: # input files

: # requirements

std::locale-support

toolset::require-boost-spirit-support

<borland*><*><cxxflags>"-w-8080 -w-8071 -w-8057 -w-8062 -w-8008 -w-0018 -w-8066"

<gcc*><*><cxxflags>"-Wno-non-virtual-dtor -Wno-ctor-dtor-privacy"

$(requirements)

: # test name

$(test-name)

: # default-build

debug

] ;

}

That is I added the line <gcc...

This doesn't seem to produce the desired effect. That is, I don't see the
new -W switches on the gcc command line. Any help would be appreicated.

Robert Ramey


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk