Skip to content

Expose function compile to an object file #912

Closed
@roblabla

Description

@roblabla

Currently, rustc's bootstrap uses cc to generate object file by asking it to generate a .a archive, discard the archive, and "guessing" where the temporary object files are to use them. Things like this. This, however, has been broken since either #684 or #786, as bootstrap does not understand the hashing mechanism used by cc-rs. This prevents upgrading cc in rustc's bootstrap, which is not ideal as cc has since included some bugfixes that are necessary to properly handle some situations (such as this).

I wonder if cc would accept a PR adding a public Build::compile_objects() function that would return a Vec<Path> of all the object files?

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