From cf3cf01a6c57e6f079c5bc06b0399d02a596c873 Mon Sep 17 00:00:00 2001 From: Vsevolod Livinskiy Date: Mon, 1 Feb 2016 16:34:06 +0300 Subject: [PATCH] Add error check during multi-target compilation. --- module.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module.cpp b/module.cpp index 570c124c..9cde7399 100644 --- a/module.cpp +++ b/module.cpp @@ -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.