Skip to content

Commit

Permalink
chore: add optimized-build profile
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypaik committed Jan 5, 2024
1 parent 4016fe8 commit faf134f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Foundry build and cache directories
out/
out-optimized/
cache/
node_modules/

Expand All @@ -8,4 +9,4 @@ report/
lcov.info

# secret
.env
.env
8 changes: 7 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ runs=500
fail_on_revert = true
depth = 10

[profile.optimized-build]
via_ir = true
script = 'src'
test = 'src'
out = 'out-optimized'

[profile.lite]
solc = '0.8.21'
via_ir = false
Expand Down Expand Up @@ -44,4 +50,4 @@ goerli = "${GOERLI_RPC_URL}"
mainnet = { key = "${ETHERSCAN_API_KEY}" }
goerli = { key = "${ETHERSCAN_API_KEY}" }

# See more config options https://github.com/foundry-rs/foundry/tree/master/config
# See more config options https://github.com/foundry-rs/foundry/tree/master/config

0 comments on commit faf134f

Please sign in to comment.