]> git.tdb.fi Git - builder.git/blob - source/gnucxxcompiler.cpp
Move C-specific stuff from SourceFile to CSourceFile
[builder.git] / source / gnucxxcompiler.cpp
1 #include "csourcefile.h"
2 #include "gnucxxcompiler.h"
3
4 using namespace Msp;
5
6 GnuCxxCompiler::GnuCxxCompiler(Builder &b):
7         GnuCompiler(b, "CXX", "g++")
8 {
9         input_suffixes.push_back(".cpp");
10         input_suffixes.push_back(".cc");
11 }
12
13 Target *GnuCxxCompiler::create_source(const Component &comp, const FS::Path &path) const
14 {
15         return new CSourceFile(builder, comp, path);
16 }