Add error check during multi-target compilation.

This commit is contained in:
Vsevolod Livinskiy
2016-02-01 16:34:06 +03:00
parent 90bed24b99
commit cf3cf01a6c

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.