Enable the YUL IR pipeline when building with optimisations (#3279)

pull/3468/head
Hadrien Croubois 3 years ago committed by GitHub
parent 4135bf9707
commit 5a0bff465d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      hardhat.config.js

@ -30,10 +30,15 @@ const argv = require('yargs/yargs')()
choices: [ 'production', 'development' ], choices: [ 'production', 'development' ],
default: 'development', default: 'development',
}, },
ir: {
alias: 'enableIR',
type: 'boolean',
default: false,
},
compiler: { compiler: {
alias: 'compileVersion', alias: 'compileVersion',
type: 'string', type: 'string',
default: '0.8.9', default: '0.8.13',
}, },
coinmarketcap: { coinmarketcap: {
alias: 'coinmarketcapApiKey', alias: 'coinmarketcapApiKey',
@ -65,6 +70,7 @@ module.exports = {
enabled: withOptimizations, enabled: withOptimizations,
runs: 200, runs: 200,
}, },
viaIR: withOptimizations && argv.ir,
}, },
}, },
networks: { networks: {

Loading…
Cancel
Save