Boost logo

Boost-Build :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2003-05-26 09:35:10


At 12:33 AM 5/26/2003, Rene Rivera wrote:

>But if you need control on a per file basis then the naswer is
complicated,
>because it's not really supported by BBv1. But a hack that will work is
to
>declare a free-feature to specify files which should have warnings
>disabled,
>and check as each file is compiled to add, or not, the --a flag. And to
>make
>it easy for you.. attached is a patch to the current como-win32-tools.jam
>which does that ;-) With it you can specify <no-warn>some_file.cpp in the
>requirements section which will not get the --a flag.

Yes, that's exactly what is needed!

I made the change to como-win32-tools.jam in CVS. It didn't work for me,
however.

Perhaps I didn't use <no-warn> correctly. See my Jamfile below. I also
tried prefixing the two .cpp filenames with "../src/", but that didn't work
either.

Ideas?

--Beman

-----

# Boost Filesystem Library Build Jamfile

subproject libs/filesystem/build ;

SOURCES = exception operations_posix_windows path_posix_windows convenience
;

lib boost_filesystem : ../src/$(SOURCES).cpp
: <include>$(BOOST_ROOT) <sysinclude>$(BOOST_ROOT)
: debug release
: <no-warn>exception.cpp <no-warn>operations_posix_windows.cpp
;

 


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