-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building contracts with different compiler settings #5715
Comments
Is there any plan to implement this feature? |
Would like this feature as well |
Another reason to tune the compiler for specific contracts is that some of them need to be compiled into a small bytecode, but they shouldn't force all the contracts in the project to get poor runtime optimization.
|
@mattsse Any thoughts on this? We're running into this where we have a few contracts, and one is quite large and just over the limit on the our optimizer setting. It would be nice to override the profile settings per contract. |
Related: #6099 |
Component
Forge
Describe the feature you would like
Currenlty
forge build
uses a single configuration settings for all compiled contracts.In our project, we need to compile the production code (2 contracts) using
via-ir
, but all the supporting contracts without.We currently use hardhat configuration with specific "configuration override" for just those 2 contracts.
It would be nice if forge supported such configuration too.
Additional context
No response
The text was updated successfully, but these errors were encountered: