]> git.tdb.fi Git - builder.git/blobdiff - source/gnuccompiler.cpp
Move C-specific stuff from SourceFile to CSourceFile
[builder.git] / source / gnuccompiler.cpp
index 4ff46e82ca22fc56219b3a4f466d22f3471cf72a..8fc8b6c9da626d3d45344598cbf774fc4132bd50 100644 (file)
@@ -1,3 +1,4 @@
+#include "csourcefile.h"
 #include "gnuccompiler.h"
 
 using namespace std;
@@ -8,3 +9,8 @@ GnuCCompiler::GnuCCompiler(Builder &b):
 {
        input_suffixes.push_back(".c");
 }
+
+Target *GnuCCompiler::create_source(const Component &comp, const FS::Path &path) const
+{
+       return new CSourceFile(builder, comp, path);
+}