Skip to content

"deterministic" compile config option similar to erlang compiler #8986

@pavels

Description

@pavels

Erlang has deterministic option for compilation wit following meaning:

Omit the options and source tuples in the list returned by Module:module_info(compile), and reduce the paths in stack traces to the module name alone. This option will make it easier to achieve reproducible builds.

It would be nice to have this in Elixir - especially the source omission. Sometimes it is necessary to be able to produce builds which are binary exactly the same and as it is now, you would need to do this on exactly same source paths.

I would even volunteer to make a PR, problem is, the build process of Elixir is quiet impenetrable to me. Tried multiple times to get a grasp on what's going on, but failed, so i would at least need some hints on where to start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions