really dumb bjam (v1) question.

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

Robert Ramey wrote:
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:
<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"
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.
BBv1 only support single matching, the "<*>", for the requirements. Anything more you'll need to use a requirement rule, like the "toolset::require-boost-spirit-support". -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org
participants (2)
-
Rene Rivera
-
Robert Ramey