!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

586 Members
Rust129 Servers

Load older messages


SenderMessageTime
28 Jun 2025
@emilazy:matrix.orgemily
In reply to @qyliss:fairydust.space
I don't think there's any real complexity to making this conditional?
would it not be doable as just a flag to the rustc build otherwise?
13:31:01
@emilazy:matrix.orgemilyand forget about wrappers or Cargo or anything13:31:11
@qyliss:fairydust.spaceAlyssa RossOh, is it?13:31:11
@qyliss:fairydust.spaceAlyssa RossIn that case sure13:31:17
@dramforever:matrix.orgdramforeverbut i am annoyed by the fact that if we check targetPlatform in rustc it means there's a weird case where people cross compiling from x86-32 would find their build scripts and proc macros running with frame pointers enabled13:31:19
@dramforever:matrix.orgdramforeverrustc wrapper, i mean13:31:42
@emilazy:matrix.orgemily targetPlatform is evil and we should not poison multi-target compilers with it any more than necessary :( 13:32:02
@emilazy:matrix.orgemily I was just talking about the path to getting rid of wrappers for Clang in #stdenv:nixos.org 13:32:17
@dramforever:matrix.orgdramforeversure, if only it was easy to check the actual target13:33:44
@emilazy:matrix.orgemily we shouldn't have logic like that at all beyond the native target configuration files LLVM and Rust supports 13:34:25
@emilazy:matrix.orgemilyanyway, doing things that work on every platform is good, but adding complexity that moves us away from things that can work upstream/without wrappera just to improve performance on systems we explicitly don't support out of a small legacy subset defeats the point of having guidelines about platform support IMO13:35:18
@emilazy:matrix.orgemily(if there's actually perf-relevant stuff in our supported i686-linux set like maybe parts of Mesa then that's another matter though, but I suspect not as good don't think we can even build Rust for i686-linux?)13:36:48
@emilazy:matrix.orgemily(as in the compiler. maybe we can)13:36:55
@emilazy:matrix.orgemily(I figured it would be one of those things that exhausts the address space)13:37:06
@qyliss:fairydust.spaceAlyssa RossWe could last I checked13:37:13
@qyliss:fairydust.spaceAlyssa RossWhich was probably a year or so ago13:37:32
@emilazy:matrix.orgemilydo we actually on Hydra?13:37:40
@qyliss:fairydust.spaceAlyssa RossNo idea13:37:48
@emilazy:matrix.orgemily
In reply to @emilazy:matrix.org
would it not be doable as just a flag to the rustc build otherwise?
actually maybe not because of the Rust build forgets everything you tell it thing
13:42:05
@emilazy:matrix.orgemilyso wrapper injection may be unavoidable :/13:42:20
@emilazy:matrix.orgemilyat least until we do target configuration files13:42:37
@qyliss:fairydust.spaceAlyssa RossOr we do it via build systems13:44:51
@qyliss:fairydust.spaceAlyssa RossThat would also be fine, right?13:45:00
@dramforever:matrix.orgdramforeveri need to check what we actually do for x86-3213:46:58
@dramforever:matrix.orgdramforeveron the other hand, if we really don't do i686 rust then even if i check targetPlatform, dropping the check is zero rebuilds13:52:48
@dramforever:matrix.orgdramforever* on the other hand, if we really don't do i686 rust in hydra then even if i check targetPlatform, dropping the check is zero rebuilds13:52:56
29 Jun 2025
@c0d3h01:matrix.orgHarshal Sawant (c0d3h01) joined the room.09:37:18
@vedantmgoyal:beeper.com@vedantmgoyal:beeper.com left the room.09:48:37
@dramforever:matrix.orgdramforeversanity check, there's no reason here in cargoSetupHook https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/rust/hooks/default.nix we only set crt-static if host != target, right?17:16:16
@emilazy:matrix.orgemilyI think Rust already knows for the host platform17:29:20

Show newer messages


Back to Room ListRoom Version: 6