]> git.tdb.fi Git - builder.git/commitdiff
Only use source files that are actually files
authorMikko Rasa <tdb@tdb.fi>
Thu, 5 Jan 2017 23:02:52 +0000 (01:02 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 5 Jan 2017 23:02:52 +0000 (01:02 +0200)
And not, say, directories.

source/component.cpp

index bebe3f7790f4c6b20d874a6208e40583f2d6f083..e8fdd5806dfacd341a06b8bd2a1081b465bbf7c2 100644 (file)
@@ -110,7 +110,9 @@ Component::SourceList Component::collect_source_files() const
                                                        continue;
                                                overlay_files.insert(*k);
                                        }
-                                       files.push_back(*j / *k);
+                                       FS::Path fn = *j / *k;
+                                       if(!FS::is_dir(fn))
+                                               files.push_back(fn);
                                }
                        }
                }