Skip to content

Object file hash prefix creates determinism issues #1271

Closed
@nmattia

Description

@nmattia

Hi,

I've noticed that when generating object files, the full path of the source files is hashed and included in the object file name. This causes some issues in build systems like Bazel and Nix because the intermediary files will change depending on the directory where the build is performed. This also seems to influence the final output.

I've created a strawman PR with a fix that I've only tested on 1.0.83, though it makes some assumptions about where the source files are located.

What would be a good way of fixing this?

Thanks!

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