Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-06-11 03:58:45


Hi Michael,

> I have been doing some further testing of the current and M3 Boost.build
> v2 and have a few minor contributions. First of a minor bug and fix for
> the gcc toolset.
>
> Bug:
> gcc.jam defaults to using 'g++' for building source files. This
> incorrect for C sources files (.c), as 'g++' will assume they contain
> C++ no matter what the extension.
>
> Fix:
> Always use 'gcc' for building source files. This change interacts
> with the mechanism for setting $(NAME) when a gcc version is specified.

True, that's a known bug. And since you're the second person who run in it, it
worth fixing right now. As Rene already mentioned, using just gcc won't work
in all cases, so I've implemented the "right" fix. The fix and the test are
now in CVS. Could you try agian?

BTW, does anyone know how to force C++ compile or C compile for MSVC?
V1 toolset does not explicitly say that and I don't have MSVC handy at the
moment.

- Volodya

 


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