Open
Description
-
Make a new compiler option,
remove_unused_functions
. By default it should be set toMix.env == :prod
. Meaning by default it would be true only for production builds. -
In compiler, if
remove_unused_functions
is true, skip theFindUsedFunctions
phase. -
In the
Translate
phase, whenremove_unused_functions
is false, set theused
field equal to thedefinitions
field. All other compilation should happen as normal