!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

577 Members
127 Servers

Load older messages


SenderMessageTime
18 Jul 2025
@quadradical:federated.nexusQuadRadical (Ping) i realized there were more vars @emily , i edited it ^^ 20:35:22
@qyliss:fairydust.spaceAlyssa RossHmm20:35:32
@qyliss:fairydust.spaceAlyssa RossI wonder why cargo still cross compiles then20:35:39
@emilazy:matrix.orgemily it also seems to prefer - over _, so we should probably just put the raw target name in there, if that's an option 20:35:42
@emilazy:matrix.orgemily whatever HOST and TARGET get set to 20:35:50
@emilazy:matrix.orgemilydon't feel qualified to determine which of the 50 different options it is in practice :P20:36:04
@emilazy:matrix.orgemily(without testing, I mean, especially with custom targets)20:36:54
@quadradical:federated.nexusQuadRadical (Ping)so, not my fault then?20:40:34
@emilazy:matrix.orgemilyyes, I think Alyssa's patch is not quite right20:42:42
@quadradical:federated.nexusQuadRadical (Ping)okay thanks!20:42:52
@quadradical:federated.nexusQuadRadical (Ping)ill test again if its changed20:42:58
@dramforever:matrix.orgdramforeveroh hi we're doing the pkg-configening?20:44:33
@emilazy:matrix.orgemily Alyssa Ross: er, it looks like it only even looks at the target-specific env variables specifically for the host platform (what it calls the target platform, Rust ecosystem should be punished for a thousand years for perpetuating that off-by-one error) 20:45:31
@emilazy:matrix.orgemily for the build platform it'll just always use unprefixed pkg-config 20:45:38
@emilazy:matrix.orgemilythat's annoying20:45:42
@emilazy:matrix.orgemilybut I guess shouldn't break anything20:46:00
@dramforever:matrix.orgdramforeveryuuup...20:46:31
@dramforever:matrix.orgdramforeverthat should work in nixpkgs though20:46:39
@emilazy:matrix.orgemilyeverything everywhere is so hopelessly confused about cross20:46:41
@dramforever:matrix.orgdramforeverwe don't do canadian cross20:46:52
@emilazy:matrix.orgemilyit's like when things try to think about cross they get even more confused20:46:58
@dramforever:matrix.orgdramforeverand also can't make a (L, C, C) compiler build other packages20:47:04
@emilazy:matrix.orgemilyyes, it just means we're always setting a "useless" thing20:47:13
@emilazy:matrix.orgemily like the PKG_CONFIG_[buildPlatform] var is never useful 20:47:24
@emilazy:matrix.orgemily it might also mean we need to set PKG_CONFIG 20:47:46
@dramforever:matrix.orgdramforeveri don't think it's cleaner to leave that out?20:47:48
@emilazy:matrix.orgemily or HOST_PKG_CONFIG or whatever 20:47:49
@dramforever:matrix.orgdramforeverso, whatever20:47:51
@emilazy:matrix.orgemilybecause it looks for a relevant var when doing cross20:47:57
@emilazy:matrix.orgemilybut the logic is kind of tangled20:48:02

Show newer messages


Back to Room ListRoom Version: 6