From b7c124911a953b611fde05927361024ea43290b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Tue, 3 Aug 2021 15:50:02 +0200 Subject: [PATCH] CommandLineParser: Process linker mode before assembly mode --- solc/CommandLineParser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/solc/CommandLineParser.cpp b/solc/CommandLineParser.cpp index 8ce0dfcfe..f2ffa8a0a 100644 --- a/solc/CommandLineParser.cpp +++ b/solc/CommandLineParser.cpp @@ -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(); @@ -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();