!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

577 Members
127 Servers

Load older messages


SenderMessageTime
18 Jul 2025
@emilazy:matrix.orgemilythe build platform20:55:25
@emilazy:matrix.orgemily so it will notice they're the same and look at HOST_PKG_CONFIG and PKG_CONFIG_[buildPlatform] 20:55:38
@emilazy:matrix.orgemilyI really need to find the person who came up with build/host/target and take them to the Hague or something20:56:03
@emilazy:matrix.orgemilyI don't care what they call build and host as long as they rename target to like if-you-are-not-writing-a-compiler-and-you-say-this-word-you-have-made-a-mistake20:56:37
@dramforever:matrix.orgdramforever so if non-cross, it looks at HOST_PKG_CONFIG and PKG_CONFIG_underscored_triple 20:57:12
@emilazy:matrix.orgemily(dashed triple too! but yes)20:57:26
@dramforever:matrix.orgdramforever if it's cross it uses pkg-config for build and PKG_CONFIG_underscored_triple for host? 20:57:31
@dramforever:matrix.orgdramforeverreally?20:57:40
@dramforever:matrix.orgdramforever i thought it replaces '-' with '_' 20:57:48
@dramforever:matrix.orgdramforever otherwise why would they call it target_u 20:57:57
@dramforever:matrix.orgdramforeveroh wait it checks both20:58:23
@dramforever:matrix.orgdramforever ah yes my environment variable called foo-bar 20:58:44
@dramforever:matrix.orgdramforeverthis is definitely not a usability nightmare20:58:53
@dramforever:matrix.orgdramforeveranyway underscored should be fine20:59:11
@dramforever:matrix.orgdramforeverwe do that in nixpkgs too right?20:59:16
@emilazy:matrix.orgemilyno20:59:21
@emilazy:matrix.orgemilyit has no notion of build or host20:59:23
@emilazy:matrix.orgemilyAFAICT20:59:27
@emilazy:matrix.orgemilylike20:59:30
@emilazy:matrix.orgemilyas in20:59:30
@emilazy:matrix.orgemily the API will always look for host platform deps 20:59:37
@dramforever:matrix.orgdramforeveroh so you just can't get build pkg-config20:59:42
@emilazy:matrix.orgemilyyeah, only via dev deps20:59:52
@emilazy:matrix.orgemily it just will adjust whether it looks at HOST_* or TARGET_* based on whether the current build is cross 21:00:02
@emilazy:matrix.orgemily so you can mix multiple pkg-config in a single cargo build 21:00:10
@emilazy:matrix.orgemily but each build script only sees one platform for pkg-config purposes 21:00:20
@emilazy:matrix.orgemilyanyway it's bad and I hate it21:00:37
@dramforever:matrix.orgdramforeverthis is cursed but i can't think of anything off the top of my head that really needs the other21:01:32
@dramforever:matrix.orgdramforeverso whatever21:01:35
@emilazy:matrix.orgemilywell21:03:41

Show newer messages


Back to Room ListRoom Version: 6