Skip to content

rustc_target: The differences between target_os = "none" and target_os = "unknown", and target_vendor = "unknown" and target_vendor = "" are unclear #77730

Closed
@petrochenkov

Description

@petrochenkov

The majority of targets use target_os = "none" / target_vendor = "unknown" respectively, but some targets deviate and use target_os = "unknown" / target_vendor = "".

Possible solutions:

  • There's no difference between "", "none" and "unknown", normalize to the more common variants.
  • There are deep reasons for the status quo, keep and document it.
  • 50 / 50 of the above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-target-specsArea: Compile-target specifications

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions