Skip to content

Make unused function pass optional #409

Open

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

  1. added this to the 0.32.0 milestone on Oct 21, 2017
  2. self-assigned this
    on Oct 21, 2017
  3. bryanjos commented on Dec 10, 2017

    @bryanjos
    CollaboratorAuthor

    Having some issues with this still so going to open it back up

  4. removed this from the 0.32.0 milestone on Jan 3, 2018
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