Skip to content

Commit c5db7bd

Browse files
committed
eof: Enable yul in SyntaxTest by default when compiling to EOF
1 parent 96c8f38 commit c5db7bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/libsolidity/SyntaxTest.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ SyntaxTest::SyntaxTest(
4848
{
4949
static std::set<std::string> const compileViaYulAllowedValues{"true", "false"};
5050

51-
m_compileViaYul = m_reader.stringSetting("compileViaYul", "false");
51+
auto const eofEnabled = solidity::test::CommonOptions::get().eofVersion().has_value();
52+
53+
m_compileViaYul = m_reader.stringSetting("compileViaYul", eofEnabled ? "true" : "false");
5254
if (!util::contains(compileViaYulAllowedValues, m_compileViaYul))
5355
BOOST_THROW_EXCEPTION(std::runtime_error("Invalid compileViaYul value: " + m_compileViaYul + "."));
5456
m_optimiseYul = m_reader.boolSetting("optimize-yul", true);

0 commit comments

Comments
 (0)