about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorEthan Brierley <ethanboxx@gmail.com>2023-08-22 09:09:12 +0100
committerEthan Brierley <ethan.brierley@truelayer.com>2023-08-22 11:06:43 +0100
commit0e070aa548e32f6ba8dd4cc28e9c71d9ccfb7ff3 (patch)
tree7abbceb01100d42072a6a31f129c643e017162d1 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent32aa40538e473f58e504a09331c8a23a939ae88a (diff)
downloadrust-0e070aa548e32f6ba8dd4cc28e9c71d9ccfb7ff3.tar.gz
rust-0e070aa548e32f6ba8dd4cc28e9c71d9ccfb7ff3.zip
Always use `os-release` rather than `/lib` to detect `NixOS`
[Two users over on zulip](https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/Bootstrapping.20on.20NixOS) bumped into issues where NixOS wasn't being properly detected.

I believe this was caused by the presence of `/lib` on their machines. `/lib` is not standard on NixOS but can still be created by users or scripts.

We are already checking `/etc/os-release`. The presence of `ID=nixos` in it's output should be trustworthy and we shouldn't then go on to also check for `/lib`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions