Subject: Re: [Boost-build] Is there a way to de-register a suffix?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2011-10-20 05:35:44
On Thursday, October 20, 2011 01:14:59 Ling Li wrote:
> To deal with swig .i files, I register the suffix ".i" with a SWIG
> type, and define actions with that type. However, after upgrading
> from Boost 1.44 to 1.47, bjam started to complain about "Attempting to
> specify multiple types for suffix "i", Old type PREPROCESSED_C, New
> type SWIG". It seems that there's a new file at
> tools/types/preprocessed.jam that associated ".i" with PREPROCESSED_C.
> Is there a way to de-register PREPROCESSED_C from ".i" so my little
> SWIG trick can work?
looking at build/type.jam, I don't see any such way, but it seems it should
not be to hard for you to implement it. Alternatively, you can use the 'cast'
to specify types of your sources explicitly. E.g.
cast foo.swig SWIG : foo.i ;
exe hello : hello.cpp foo.swig ;
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build: http://boost.org/boost-build2
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