Merge pull request #1159 from Vsevolod-Livinskij/error-check

Add error check during multi-target compilation.
This commit is contained in:
Dmitry Babokin
2016-02-01 16:53:52 +03:00

View File

@@ -3248,6 +3248,9 @@ Module::CompileAndOutput(const char *srcFile,
}
}
errorCount += m->errorCount;
if (errorCount != 0) {
return 1;
}
// Only write the generate header file, if desired, the first
// time through the loop here.