-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make unused function pass optional #409
Labels
Comments
Having some issues with this still so going to open it back up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 normalThe text was updated successfully, but these errors were encountered: