[Scons-users] .C suffix for c files on POSIX
Dirk Bächle
tshortik at gmx.de
Wed Dec 18 20:46:34 EST 2013
Hi Carl,
On 19.12.2013 00:49, Carl Cerecke wrote:
> How can I tell scons that a .C suffix is for C files, not C++ files on Linux?
>
> I've tried env.Append(CFILESUFFIX=['.C']) but it does not work - the
> files are still recognised as C++.
I think that instead of restricting the suffix list, it'd be easier to
create an Environment that only loads the C compiler:
ccenv = Environment(tools=['cc','link','ar'])
and use that one to compile your sources.
Best regards,
Dirk
More information about the Scons-users
mailing list