Skip to content

Commit a5f1f7c

Browse files
committed
chore(ir): disable compiling with --via-ir pipeline until we fully support it
1 parent d8bd754 commit a5f1f7c

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

libsolidity/interface/StandardCompiler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,8 @@ std::variant<StandardCompiler::InputsAndSettings, Json> StandardCompiler::parseI
819819
if (!settings["viaIR"].is_boolean())
820820
return formatFatalError(Error::Type::JSONError, "\"settings.viaIR\" must be a Boolean.");
821821
ret.viaIR = settings["viaIR"].get<bool>();
822+
if (ret.viaIR)
823+
return formatFatalError(Error::Type::JSONError, "The via-IR pipeline is not currently supported. Support for via-IR is planned for a future release.");
822824
}
823825

824826
if (settings.contains("evmVersion"))

solc/CommandLineParser.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,12 @@ void CommandLineParser::processArgs()
14871487
m_args.count(g_strModelCheckerTimeout);
14881488
m_options.output.viaIR = (m_args.count(g_strExperimentalViaIR) > 0 || m_args.count(g_strViaIR) > 0);
14891489

1490+
if (m_options.output.viaIR)
1491+
solThrow(
1492+
CommandLineValidationError,
1493+
"The --via-ir pipeline is not currently supported. Support for --via-ir is planned for a future release."
1494+
);
1495+
14901496
solAssert(
14911497
m_options.input.mode == InputMode::Compiler ||
14921498
m_options.input.mode == InputMode::CompilerWithASTImport ||

0 commit comments

Comments
 (0)