]> git.tdb.fi Git - builder.git/blobdiff - source/gnucxxcompiler.cpp
Move C-specific stuff from SourceFile to CSourceFile
[builder.git] / source / gnucxxcompiler.cpp
index 8084a03e8201cbdaa00ee9db8e5a34f104e980a9..7c863a51b2ad5aff193b340bceedcbd42021a34d 100644 (file)
@@ -1,8 +1,16 @@
+#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");
 }
+
+Target *GnuCxxCompiler::create_source(const Component &comp, const FS::Path &path) const
+{
+       return new CSourceFile(builder, comp, path);
+}