foundry icon indicating copy to clipboard operation
foundry copied to clipboard

feat(`forge build`): introduce solc settings dependent caches

Open sakulstra opened this issue 6 months ago • 1 comments

Component

Forge

Describe the feature you would like

When building a multi-chain project the foundry caching is too limited as it will throw away the cache and recompile the whole codebase. Especially on bigger projects this is a huge limitation as for one chain you might need to compile with london(e.g. linea), the next with shanghai(e.g. metis) and the third with cancun. On the aave codebase and related projects foundry becomes nearly unusable as on every switch you might need to recompile 500 files bringing development to a halt.

Additional context

There is a related problem I described here: https://github.com/foundry-rs/foundry/issues/9840, this feature request tried to separate this into two distinct problems. One is the caching (this issue), while the other one is the inability to reliably run multichain scripts (the other one).

sakulstra avatar May 30 '25 13:05 sakulstra

possible ref to https://github.com/foundry-rs/foundry/issues/4522

grandizzy avatar Jun 03 '25 12:06 grandizzy