Skip to content

Module file names should be resolved relatively to the referring module #6746

@mzabaluev

Description

@mzabaluev

With current rustc it's difficult to support automake-style out of tree builds, because when a crate file is compiled outside of its containing directory and it references other modules, the module file paths are resolved relatively to the current directory of the compiler process, not relatively to the referring crate file. Is there any benefit in making the crate assembly dependent on the current working directory?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions