Boost logo

Boost-Build :

From: Craig Rodrigues (rodrigc_at_[hidden])
Date: 2005-08-01 17:44:47


I have a legacy project where unfortunately
a lot of C++ files are named with a .c extension.
I cannot rename the files for various reasons (not fun!).

I have the following in my Jamroot:

: build-dir $(BUILD)
: requirements <toolset>gcc:<cflags>"-x c++"


This forces files to be compiled as C++.

I was wondering if there was a way that I can refine this
so that *only* files which end with .c have the flag "-x c++"
applied. The reason for this is because I also
have some assembler files in my project, and for those
files, "-x c++" is no good.....I need "-x assembler-with-cpp".


Craig Rodrigues 

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at