Skip to content

Make unused function pass optional #409

Description

@bryanjos
  • Make a new compiler option, remove_unused_functions. By default it should be set to Mix.env == :prod. Meaning by default it would be true only for production builds.

  • In compiler, if remove_unused_functions is true, skip the FindUsedFunctions phase.

  • In the Translate phase, when remove_unused_functions is false, set the used field equal to the definitions field. All other compilation should happen as normal

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions