Merge pull request #9075 from ethereum/commandline-invalid-asm-mode-options

Disallow invalid command-line option combinations in assembly mode
This commit is contained in:
chriseth
2020-06-15 17:33:12 +02:00
committed by GitHub
11 changed files with 76 additions and 10 deletions
@@ -0,0 +1 @@
--strict-assembly --output-dir /tmp/
@@ -0,0 +1 @@
The following options are invalid in assembly mode: --output-dir, --gas, --combined-json, --optimize-yul, --no-optimize-yul. Optimization is disabled by default and can be enabled with --optimize.
@@ -0,0 +1 @@
1
@@ -0,0 +1,3 @@
{
sstore(0, 1)
}
@@ -0,0 +1 @@
--yul-dialect evm --machine ewasm
@@ -0,0 +1 @@
--yul-dialect and --machine are only valid in assembly mode.
@@ -0,0 +1 @@
1
@@ -0,0 +1,7 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C
{
function f() public pure {}
}