fix target name not written when not overridden

This commit is contained in:
Julian Daube 2017-10-09 14:35:53 +02:00
parent 98b44ec923
commit 640046ee1e
1 changed files with 1 additions and 4 deletions

View File

@ -378,11 +378,8 @@ int main(int argc, char ** args) {
if (!openOutfile(outfile)) {
continue; // just skip this file
}
}
// check for target override
if (config.targetName.empty()) {
config.targetName = filename;
writeTarget(outfile, filename);
}
for (auto it = list.begin(); it != list.end(); it++) {