]> git.tdb.fi Git - builder.git/blobdiff - source/gnucompiler.cpp
There's no good reason to abbreviate this
[builder.git] / source / gnucompiler.cpp
index 3f5121997dbe2d8322b9561ea9cbcaca668663d1..43e8e300ad08132bb8cf5ce72d4d254fdd463cd8 100644 (file)
@@ -40,6 +40,11 @@ Target *GnuCompiler::create_target(const list<Target *> &sources, const string &
 string GnuCompiler::create_build_signature(const BuildInfo &binfo) const
 {
        string result = FS::basename(executable->get_path());
+       if(!architecture->get_cpu().empty())
+       {
+               result += ",m";
+               result += architecture->get_cpu();
+       }
        result += ',';
        if(binfo.debug)
                result += 'g';
@@ -131,8 +136,5 @@ Task *GnuCompiler::run(const Target &target) const
        argv.push_back(relative(obj_path, work_dir).str());
        argv.push_back(relative(src_path, work_dir).str());
 
-       if(!builder.get_dry_run())
-               FS::mkpath(FS::dirname(obj_path), 0755);
-
        return new ExternalTask(argv, work_dir);
 }