We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53bf24c commit 2314727Copy full SHA for 2314727
src/bootstrap/builder.rs
@@ -785,7 +785,9 @@ impl<'a> Builder<'a> {
785
786
// If the user has asked binaries to be patched for Nix, then
787
// don't check for NixOS or `/lib`, just continue to the patching.
788
- // FIXME: shouldn't this take precedence over the `uname` check above?
+ // NOTE: this intentionally comes after the Linux check:
789
+ // - patchelf only works with ELF files, so no need to run it on Mac or Windows
790
+ // - On other Unix systems, there is no stable syscall interface, so Nix doesn't manage the global libc.
791
if !self.config.patch_binaries_for_nix {
792
// Use `/etc/os-release` instead of `/etc/NIXOS`.
793
// The latter one does not exist on NixOS when using tmpfs as root.
0 commit comments