add option to forge build
to only get the AST without compiling to bytecode
#7212
Labels
T-feature
Type: feature
Component
Forge
Describe the feature you would like
UPDATE see #7212 (comment)
I would like the forge build command to expose this, so one can pass
--stop-after parsing
solc and only get the AST without compiling to bytecodeAs a potential optimization, foundry could look if the solidity files' content is unchanged and reuse the AST on disk for compilation by giving them to solc when
forge build --stop-after parsing && forge build/test
is run.Additional context
from https://github.com/ethereum/solidity/blob/develop/docs/using-the-compiler.rst#compiler-input-and-output-json-description:
The text was updated successfully, but these errors were encountered: