From 08731ed6bc22bdd9324081fe99fff69dde1a7951 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 26 Jun 2018 00:15:36 +0300 Subject: [PATCH] Don't crash if the executable of a GnuCompiler is not found --- source/gnucompiler.cpp | 3 +++ 1 file changed, 3 insertions(+) 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()) { -- 2.43.0