X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgnucxxcompiler.cpp;h=fb7fbdce2cf37d0601f545e40c71d5c9528e0a5d;hb=dceec8d95c63aaf4d8d4b367c9846caf9e32a6bf;hp=8084a03e8201cbdaa00ee9db8e5a34f104e980a9;hpb=338eefb513953ae55e8e3614c009c242ba8ad74e;p=builder.git diff --git a/source/gnucxxcompiler.cpp b/source/gnucxxcompiler.cpp index 8084a03..fb7fbdc 100644 --- a/source/gnucxxcompiler.cpp +++ b/source/gnucxxcompiler.cpp @@ -1,8 +1,17 @@ +#include "csourcefile.h" #include "gnucxxcompiler.h" +using namespace Msp; + GnuCxxCompiler::GnuCxxCompiler(Builder &b): GnuCompiler(b, "CXX", "g++") { input_suffixes.push_back(".cpp"); input_suffixes.push_back(".cc"); + aux_suffixes.push_back(".hpp"); +} + +Target *GnuCxxCompiler::create_source(const Component &comp, const FS::Path &path) const +{ + return new CSourceFile(builder, comp, path); }