www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Determime actual modules used

reply Alex <AJ gmail.com> writes:
I need to determine the actual modules that are used in the 
project, not just imported but ones that actually are referenced.

Any utility exists to do this?
Apr 28 2019
parent Adam D. Ruppe <destructionator gmail.com> writes:
On Sunday, 28 April 2019 at 22:02:45 UTC, Alex wrote:
 Any utility exists to do this?
I don't know if there's a utility, but the way I'd do it is to simply replace a module with an empty one, recompile, and see if it still builds. Repeat for each module. Should be reasonably easily scriptable too.
Apr 28 2019