Enable yul optimizations if optimizations are enabled and in Yul mode.

pull/5370/head
chriseth 6 years ago
parent fc0f654957
commit 0f2c4220f9
  1. 4
      remix-solidity/src/compiler/compiler-input.js

@ -24,5 +24,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