trufflesuite / truffle-compile

Compiler helper and artifact manager
22 stars 46 forks source link

Minimize compilation set #53

Closed cgewecke closed 6 years ago

cgewecke commented 6 years ago

Implements #23 and restores intended profiler behavior. All sources are passed to solc input, but updated contracts and their 'ancestors' (e.g the contracts that inherit them) are specified as compilation targets in solc's output object.

This entailed a bit of a rewrite of the comp logic, which is both intricate and critical to truffle's normal functioning :). Warning emoji.

There is a PR with new unit tests for this at truffle. And another PR at truffle-core with changes to its tests to accommodate new behavior.