Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change built-in kernel targets to be os = none throughout #77916

Merged
merged 1 commit into from
Mar 7, 2021

Commits on Mar 1, 2021

  1. Change built-in kernel targets to be os = none throughout

    Whether for Rust's own `target_os`, LLVM's triples, or GNU config's, the
    OS-related have fields have been for code running *on* that OS, not code
    that is *part* of the OS.
    
    The difference is huge, as syscall interfaces are nothing like
    freestanding interfaces. Kernels are (hypervisors and other more exotic
    situations aside) freestanding programs that use the interfaces provided
    by the hardware. It's *those* interfaces, the ones external to the
    program being built and its software dependencies, that are the content
    of the target.
    
    For the Linux Kernel in particular, `target_env: "gnu"` is removed for
    the same reason: that `-gnu` refers to glibc or GNU/linux, neither of
    which applies to the kernel itself.
    
    Relates to rust-lang#74247
    
    Thanks @ojeda for catching some things.
    Ericson2314 committed Mar 1, 2021
    Configuration menu
    Copy the full SHA
    9d25ccf View commit details
    Browse the repository at this point in the history