!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

499 Members
109 Servers

Load older messages


SenderMessageTime
19 May 2025
@k900:0upti.meK900Honestly I still want to kill off target at some point13:35:32
@emilazy:matrix.orgemilywhy not? in most cases we handle it correctly13:35:39
@k900:0upti.meK900I forgot why it blows up the platform offset logic but it does13:36:44
@k900:0upti.meK900Honestly that whole thing is the primary reason I really want to kill target13:37:09
@emilazy:matrix.orgemilywell that's dumb13:37:09
@k900:0upti.meK900Having just two platform offsets and having them saturate makes things SO much easier13:37:22
@emilazy:matrix.orgemily targetPlatform is bad, but I thought we were at least getting value out of it 13:37:21
@k900:0upti.meK900To reason about13:37:26
@emilazy:matrix.orgemilyGCC and wrappers should just take a target argument.13:37:47
@emilazy:matrix.orgemilyit's rough when you need to build libraries for target though13:37:58
@k900:0upti.meK900Yeah, that's what I was thinking as well13:38:00
@k900:0upti.meK900Anything that's explicitly-targeted can just require specifying a target13:38:21
@k900:0upti.meK900 Actually that also blows up Canadian cross 13:38:38
@emilazy:matrix.orgemily yes, but pkgsTarget* gets hard 13:38:37
@emilazy:matrix.orgemilyit's rare though13:38:44
@k900:0upti.meK900Because there is no pkgsOnBuildForTarget13:38:46
@k900:0upti.meK900Technically pkgsTarget does not get hard in that setup, it just becomes normal cross13:39:35
@emilazy:matrix.orgemilyuh. hm13:39:36
@k900:0upti.meK900Which does require another nixpkgs13:39:40
@k900:0upti.meK900But that's fine probably?13:39:47
@emilazy:matrix.orgemily isn't that just pkgsTargetTarget 13:40:39
@emilazy:matrix.orgemily or pkgsTargetWhatever because the Whatever never matters in that case 13:40:47
@emilazy:matrix.orgemily(if the target of your target-platform package matters you are living in sin)13:40:55
@k900:0upti.meK900 It does if you're doing Canadian cross 13:41:06
@emilazy:matrix.orgemilyno13:41:17
@emilazy:matrix.orgemilyat the time it matters it is the host-platform package's target13:41:25
@emilazy:matrix.orgemilythe target of a target-platform package would be like… the GCC build wants to bundle a JIT library so that the built GCC can link it into target-platform executables, and that JIT library itself wants to target some other target13:42:09
@emilazy:matrix.orgemily that's when pkgsTargetHost vs. pkgsTargetTarget vs. whatever would matter I think. thankfully those don't exist 13:42:32
@emilazy:matrix.orgemily but doesn't pkgsTargetTarget build on the build platform? 13:42:40
@emilazy:matrix.orgemilymaybe not. wow Nixpkgs sucks. wow splicing sucks13:42:48

Show newer messages


Back to Room ListRoom Version: 6