]> git.tdb.fi Git - builder.git/commitdiff
Don't crash if the executable of a GnuCompiler is not found
authorMikko Rasa <tdb@tdb.fi>
Mon, 25 Jun 2018 21:15:36 +0000 (00:15 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 25 Jun 2018 21:15:36 +0000 (00:15 +0300)
source/gnucompiler.cpp

index 6335aaf3cc4f51ce513b06ad3735de751e05db56..470934e0fe7e32432f7d9b344690e9bcbd5be047 100644 (file)
@@ -80,6 +80,9 @@ Target *GnuCompiler::create_target(const list<Target *> &sources, const string &
 
 string GnuCompiler::create_build_signature(const BuildInfo &binfo) const
 {
+       if(!executable)
+               return string();
+
        string result = FS::basename(executable->get_path());
        if(!architecture->get_cpu().empty())
        {