]> git.tdb.fi Git - builder.git/commitdiff
Include cpu in the build signature
authorMikko Rasa <tdb@tdb.fi>
Thu, 19 Jul 2012 23:51:07 +0000 (02:51 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 19 Jul 2012 23:51:07 +0000 (02:51 +0300)
source/gnucompiler.cpp

index 3f5121997dbe2d8322b9561ea9cbcaca668663d1..a73fad72765d65be8d88730e25b3570d5925cb8d 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';