!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

564 Members
119 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
19 May 2025
@emilazy:matrix.orgemilyit'll also make GCC uglier and more annoying, which will be a great argument for switching to LLVM13:43:48
@k900:0upti.meK900No, pkgsTargetTarget is [host = target, target = target]13:46:26
@k900:0upti.meK900And in our current world host == target for packages that don't have target13:46:53
@emilazy:matrix.orgemily yes but we're talking about build = 13:47:24
@emilazy:matrix.orgemilyoh13:47:30
@emilazy:matrix.orgemilysorry I misread the package set you were talking about13:47:34
@emilazy:matrix.orgemily then I'm confused, isn't this just pkgsBuildTarget 13:47:49
@emilazy:matrix.orgemilywhich we use a fair bit13:48:02
@k900:0upti.meK900Yes but it doesn't exist on Canadian cross13:48:26
@emilazy:matrix.orgemilyI mean, it can, right? you just have to build another compiler13:49:48
@k900:0upti.meK900Well yes but that kinda defeats the point of Canadian cross13:51:02
@emilazy:matrix.orgemilyis there a point of Canadian cross?13:52:30
@k900:0upti.meK900Yes, the point of Canadian cross is that you use your slow build machine to build a cross-compiler for a fast host machine13:53:19
@k900:0upti.meK900And then use that cross-compiler to build packages for target13:53:27
@k900:0upti.meK900But faster13:53:31
@emilazy:matrix.orgemilyyou could just build the compiler on the fast host machine.13:55:33
@emilazy:matrix.orgemilyto me the sensible use-case for Canadian cross looks like "we can only get x86 CI, not AArch64, but we want to offer AArch64 binaries of our compiler for various targets"13:56:23

Show newer messages


Back to Room ListRoom Version: 6