From 412ae5814ce6be4435572b31976977a457299ed1 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 21 Jul 2012 10:59:05 +0300 Subject: [PATCH] Not all tools can create sources --- source/component.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/component.cpp b/source/component.cpp index b486c6c..f4c63a8 100644 --- a/source/component.cpp +++ b/source/component.cpp @@ -162,6 +162,9 @@ void Component::create_targets() const if(tool) { Target *src = tool->create_source(*this, *i); + if(!src) + continue; + if(tool->accepts_suffix(ext)) { Target *obj = tool->create_target(*src); -- 2.45.2