Skip to content

Fix compiler when using ERL_COMPILER_OPTIONS=deterministic #762

@msaraiva

Description

@msaraiva

According to the Erlang docs, Using the deterministic options will:

Omit the options and source tuples in the list returned by Module:module_info(compile)

Currently, the Surface compiler uses module_info/1 to retrieve the related source file in order to generate JS hooks. Instead, we could add/retrieve this information directly to/from the beam chunks as an custom attribute so we're able to use deterministic.

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