]> git.tdb.fi Git - builder.git/commitdiff
Not all tools can create sources
authorMikko Rasa <tdb@tdb.fi>
Sat, 21 Jul 2012 07:59:05 +0000 (10:59 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 21 Jul 2012 07:59:05 +0000 (10:59 +0300)
source/component.cpp

index b486c6c36a45174c12dfa39146e42950e16a1418..f4c63a8dca5e06f71be5153e9c25b2d86194cea6 100644 (file)
@@ -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);