Skip to content

The Rust stdlib can't target osx <=10.6 due to TLS issues #25342

Closed
@Manishearth

Description

@Manishearth

See https://bugzilla.mozilla.org/show_bug.cgi?id=1164109

It seems like libstd needs some TLS features introduced in OSX 10.7, and cannot target lower versions of OSX.

While 10.6 lost support last year, we probably should still make it possible for vanilla Rust (not #[no_std]) to target earlier OSX versions, especially so that Rust-in-Gecko doesn't constrain Firefox target platforms. rustc foo.rs should work for a foo.rs that doesn't use TLS.

Perhaps we should stub out TLS on those versions (replace it with a panic), or use a different, perhaps less performant, TLS implementation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-macosOperating system: macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions