Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1228 from ethereum/enableYulOptimizer
Browse files Browse the repository at this point in the history
Enable yul optimizations if optimizations are enabled and in Yul mode.
  • Loading branch information
yann300 authored Jun 24, 2019
2 parents 2b90265 + d1bd5cd commit 4799630
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion remix-solidity/src/compiler/compiler-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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)
}

0 comments on commit 4799630

Please sign in to comment.