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

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

Merged
merged 3 commits into from
Jun 24, 2019

Conversation

chriseth
Copy link
Collaborator

No description provided.

@@ -24,5 +24,9 @@ module.exports = (sources, opts) => {
if (opts.language) {
o.language = opts.language
}
if (opts.language == 'Yul' && o.settings.optimizer.enabled)
{
o.optimizer.details['yul'] = true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't it o.settings.optimizer

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right! Updated.

@@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the property details should be specified (as empty js object) in o.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants