Forbid using --cpu in multitarget mode

This commit is contained in:
Anton Mitrokhin
2015-05-10 17:26:29 +03:00
parent be2adf40d8
commit 8891534a3c

View File

@@ -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<std::string> targets = lExtractTargets(target);