From 8891534a3c6a77a40323fbe3d30728921d042c6d Mon Sep 17 00:00:00 2001 From: Anton Mitrokhin Date: Sun, 10 May 2015 17:26:29 +0300 Subject: [PATCH] Forbid using --cpu in multitarget mode --- module.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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);