Skip to content

MSVC examples cannot be exported with out-dir #7493

Open
@ehuss

Description

@ehuss

If a project has an example binary, normally --out-dir will export those examples to the output directory. However, as of #7400, examples are no longer exported for MSVC targets.

This is because the metadata hash has been removed from the filename. The out-dir linking code relies on the hardlink field to know which files to link. Since the example no longer is hard linked, it is no longer exported.

I think somehow calc_outputs_rustc should use a different mechanism to determine which files to export.

This is relevant to the collision_export test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugE-mediumExperience: MediumO-windowsOS: WindowsS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Z-out-dirNightly: --out-dir

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions