mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11895 from ethereum/doNotRunEvmCodegenIfNotAsked
Do not run evm codegen if not asked.
This commit is contained in:
commit
535e1ecdb2
@ -7,6 +7,7 @@ Language Features:
|
||||
|
||||
|
||||
Compiler Features:
|
||||
* Commandline Interface: Do not implicitly run evm bytecode generation unless needed for the requested output.
|
||||
* Commandline Interface: Normalize paths specified on the command line and make them relative for files located inside base path.
|
||||
* Immutable variables can be read at construction time once they are initialized.
|
||||
* SMTChecker: Support low level ``call`` as external calls to unknown code.
|
||||
|
@ -588,6 +588,26 @@ bool CommandLineInterface::compile()
|
||||
|
||||
m_compiler->enableIRGeneration(m_options.compiler.outputs.ir || m_options.compiler.outputs.irOptimized);
|
||||
m_compiler->enableEwasmGeneration(m_options.compiler.outputs.ewasm);
|
||||
m_compiler->enableEvmBytecodeGeneration(
|
||||
m_options.compiler.estimateGas ||
|
||||
m_options.compiler.outputs.asm_ ||
|
||||
m_options.compiler.outputs.asmJson ||
|
||||
m_options.compiler.outputs.opcodes ||
|
||||
m_options.compiler.outputs.binary ||
|
||||
m_options.compiler.outputs.binaryRuntime ||
|
||||
(m_options.compiler.combinedJsonRequests && (
|
||||
m_options.compiler.combinedJsonRequests->binary ||
|
||||
m_options.compiler.combinedJsonRequests->binaryRuntime ||
|
||||
m_options.compiler.combinedJsonRequests->opcodes ||
|
||||
m_options.compiler.combinedJsonRequests->asm_ ||
|
||||
m_options.compiler.combinedJsonRequests->generatedSources ||
|
||||
m_options.compiler.combinedJsonRequests->generatedSourcesRuntime ||
|
||||
m_options.compiler.combinedJsonRequests->srcMap ||
|
||||
m_options.compiler.combinedJsonRequests->srcMapRuntime ||
|
||||
m_options.compiler.combinedJsonRequests->funDebug ||
|
||||
m_options.compiler.combinedJsonRequests->funDebugRuntime
|
||||
))
|
||||
);
|
||||
|
||||
m_compiler->setOptimiserSettings(m_options.optimiserSettings());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user