!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

576 Members
127 Servers

Load older messages


SenderMessageTime
18 Jul 2025
@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
@emilazy:matrix.orgemily
                let kind = if host == target { "HOST" } else { "TARGET" };

it's wonderful that it does this for no apparent reason

20:48:18
@emilazy:matrix.orgemilyI guess to handle the build script deps case20:48:26
@dramforever:matrix.orgdramforeverwhat uses HOST_PKG_CONFIG20:48:29
@emilazy:matrix.orgemilyso actually setting both should be fine…20:48:34
@dramforever:matrix.orgdramforeverdoes build script dep even look like cross20:48:44
@emilazy:matrix.orgemilyno, which is why ^ triggers20:48:53
@emilazy:matrix.orgemilyhere's the relevant pieces of code https://docs.rs/pkg-config/0.3.32/src/pkg_config/lib.rs.html#638-659, https://docs.rs/pkg-config/0.3.32/src/pkg_config/lib.rs.html#606-630, https://docs.rs/pkg-config/0.3.32/src/pkg_config/lib.rs.html#672-67920:49:06
@emilazy:matrix.orgemilyis it a sign of maturity in my cross-compilation journey that my typical reaction has gone from "I'm confused" to "the people who wrote this build logic are confused"20:49:48
@dramforever:matrix.orgdramforeverto confuse your enemies you must first confuse yourself20:50:16
@dramforever:matrix.orgdramforeverso is this for everything? or just for rust?20:50:44
@emilazy:matrix.orgemilywe're just doing Rust here20:52:21
@emilazy:matrix.orgemily but we're setting it in the pkg-config hook to accommodate the Rust thing 20:52:28
@emilazy:matrix.orgemilywhich uses variables nobody else does, for fun20:52:36
@emilazy:matrix.orgemilyand I think assigns different semantics to them than others, for fun20:52:44

Show newer messages


Back to Room ListRoom Version: 6