Skip to content

rustdoc should support --target for doc tests #16357

Closed
@metajack

Description

@metajack

Currently there is no way to pass arbitrary compiler flags to rustdoc. This means that I can't use rustdoc to check cross compiled libraries. For example, checking i686-unknown-linux-gnu from x86_64-unknown-linux-gnu is impossible because I can't pass --target to rustdoc.

I've worked around this issue for now by disabling doctests in Servo, but that is not ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions