From: Mikko Rasa Date: Mon, 25 Jun 2018 21:15:36 +0000 (+0300) Subject: Don't crash if the executable of a GnuCompiler is not found X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=08731ed6bc22bdd9324081fe99fff69dde1a7951;p=builder.git Don't crash if the executable of a GnuCompiler is not found --- diff --git a/source/gnucompiler.cpp b/source/gnucompiler.cpp index 6335aaf..470934e 100644 --- a/source/gnucompiler.cpp +++ b/source/gnucompiler.cpp @@ -80,6 +80,9 @@ Target *GnuCompiler::create_target(const list &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()) {