CommandLineParser: Process linker mode before assembly mode

This commit is contained in:
Kamil Śliwak 2021-08-03 15:50:02 +02:00
parent 8fafdeacac
commit b7c124911a

View File

@ -948,6 +948,9 @@ General Information)").c_str(),
if (!parseLibraryOption(library))
return false;
if (m_options.input.mode == InputMode::Linker)
return true;
if (m_args.count(g_strEVMVersion))
{
string versionOptionStr = m_args[g_strEVMVersion].as<string>();
@ -1078,9 +1081,6 @@ General Information)").c_str(),
return false;
}
if (m_options.input.mode == InputMode::Linker)
return true;
if (m_args.count(g_strMetadataHash))
{
string hashStr = m_args[g_strMetadataHash].as<string>();