Merge pull request #1228 from ethereum/enableYulOptimizer

Enable yul optimizations if optimizations are enabled and in Yul mode.
pull/5370/head
yann300 5 years ago committed by GitHub
commit f18cfab4ea
  1. 7
      remix-solidity/src/compiler/compiler-input.js

@ -7,7 +7,8 @@ module.exports = (sources, opts) => {
settings: {
optimizer: {
enabled: opts.optimize === true || opts.optimize === 1,
runs: 200
runs: 200,
details: {}
},
libraries: opts.libraries,
outputSelection: {
@ -24,5 +25,9 @@ module.exports = (sources, opts) => {
if (opts.language) {
o.language = opts.language
}
if (opts.language === 'Yul' && o.settings.optimizer.enabled)
{
o.settings.optimizer.details['yul'] = true
}
return JSON.stringify(o)
}

Loading…
Cancel
Save