Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-12-17 08:46:37


Bojan Resnik wrote:
>I've finally had a chance to poke around msvc.jam. I found that adding
>the following line solved the problem of inheriting <cxxflags>:
>
> flags msvc.compile.pch USER_CFLAGS <cxxflags> : ;
>
>I am not sure if this is the correct way to do it, or if it has some
>other implications I am not aware of. Could someone please verify
>this?

The <cxxflags> feature is applicable to C++ sources and <cflags> is
associated with C sources. Therefore <cxxflags> should only be added for a
*.cpp pch and <cflags> for a *.c pch. Thus, it may be useful to have a pch_c
and pch_cpp action so we can associate the correct flags.

I am looking into removing the need to do the cast the H or HPP file.

- Reece


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