]> git.tdb.fi Git - builder.git/blobdiff - source/gnuccompiler.cpp
Make tools capable of reporting a system-wide path used to locate input files
[builder.git] / source / gnuccompiler.cpp
index 4ff46e82ca22fc56219b3a4f466d22f3471cf72a..5c2141322365c481bddd60f029819f9a45cdb7a0 100644 (file)
@@ -1,3 +1,4 @@
+#include "csourcefile.h"
 #include "gnuccompiler.h"
 
 using namespace std;
@@ -7,4 +8,10 @@ GnuCCompiler::GnuCCompiler(Builder &b):
        GnuCompiler(b, "CC", "gcc")
 {
        input_suffixes.push_back(".c");
+       aux_suffixes.push_back(".h");
+}
+
+Target *GnuCCompiler::create_source(const Component &comp, const FS::Path &path) const
+{
+       return new CSourceFile(builder, comp, path);
 }