Skip to content

Targets filtered out too early #36156

Closed
@japaric

Description

@japaric

Targets like aarch64-apple-ios don't appear under --print target-list with today's nightly (and latest beta):

$ rustc --print target-list | grep ios || echo (empty)
(empty)

but they appear there if I use the latest stable:

$ rustup run stable rustc --print target-list | grep ios
aarch64-apple-ios
armv7-apple-ios
armv7s-apple-ios
i386-apple-ios
x86_64-apple-ios

It's not like they just don't appear under the list of built-in targets. Using --target aarch64-apple-ios also says that the target doesn't exist

$ rustc --target aarch64-apple-ios --print cfg
error: Error loading target specification: Could not find specification for target "aarch64-apple-ios"

The weird thing is that you can rustup target add aarch64-apple-ios but then you can't use the target:

$ rustup target add aarch64-apple-ios
info: component 'rust-std' for target 'aarch64-apple-ios' is up to date
$ rustc --target aarch64-apple-ios --print cfg
error: Error loading target specification: Could not find specification for target "aarch64-apple-ios"

Meta

$ rustc -V
rustc 1.13.0-nightly (77d2cd28f 2016-08-29)
$ rustup run beta rustc -V
rustc 1.12.0-beta.2 (389dad798 2016-08-24)
$ rustup run stable rustc -V
rustc 1.11.0 (9b21dcd6a 2016-08-15)

cc @alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions