Sfoglia il codice sorgente

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

Hadrien Croubois 3 anni fa
parent
commit
5a0bff465d
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7 1
      hardhat.config.js

+ 7 - 1
hardhat.config.js

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