about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-07-19 08:55:36 +0200
committerGitHub <noreply@github.com>2025-07-19 08:55:36 +0200
commit870d429e251832330ca034d0f83754c97bab96f9 (patch)
tree0be05206b152b3005e2a81d0ef852fb4ffd3e379 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent17e2d6961ace1b39d0997ac2f095ad2a52a125a1 (diff)
parent9e4f777602cdac0458c57615f3019c92e4152d72 (diff)
downloadrust-870d429e251832330ca034d0f83754c97bab96f9.tar.gz
rust-870d429e251832330ca034d0f83754c97bab96f9.zip
Rollup merge of #144092 - Gelbpunkt:musl-stage0, r=Kobzol
bootstrap: Detect musl hosts

Currently, all non-Android Linux hosts are assumed to be using glibc. This obviously isn't very portable and will currently result in downloading a stage0 toolchain for glibc even on musl hosts.

There are multiple ways to detect musl somewhat reliably, but the easiest option is to check for the python target, which is exposed in `sys.implementation._multiarch` and has values like "x86_64-linux-gnu" or "powerpc64le-linux-musl".
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions