diff --git a/module.cpp b/module.cpp index ed9ea66a..5ed3c4d0 100644 --- a/module.cpp +++ b/module.cpp @@ -3145,6 +3145,11 @@ Module::CompileAndOutput(const char *srcFile, "an intermediate temporary file."); return 1; } + if (cpu != NULL) { + Error(SourcePos(), "Illegal to specify cpu type when compiling " + "for multiple targets."); + return 1; + } // The user supplied multiple targets std::vector targets = lExtractTargets(target);