Disallowed option --experimental-via-ir in Assembler, Linker and StandardJson input modes

This commit is contained in:
Midhun07
2021-08-30 19:58:55 +05:30
parent ab6b430c1f
commit 11065c6e79
3 changed files with 37 additions and 2 deletions
+10
View File
@@ -927,6 +927,16 @@ General Information)").c_str(),
else
m_options.input.mode = InputMode::Compiler;
if (
m_args.count(g_strExperimentalViaIR) > 0 &&
m_options.input.mode != InputMode::Compiler &&
m_options.input.mode != InputMode::CompilerWithASTImport
)
{
serr() << "The option --" << g_strExperimentalViaIR << " is only supported in the compiler mode." << endl;
return false;
}
if (!parseInputPathsAndRemappings())
return false;