| 18 Jul 2025 |
QuadRadical (Ping) | i realized there were more vars @emily , i edited it ^^ | 20:35:22 |
Alyssa Ross | Hmm | 20:35:32 |
Alyssa Ross | I wonder why cargo still cross compiles then | 20:35:39 |
emily | 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 |
emily | whatever HOST and TARGET get set to | 20:35:50 |
emily | don't feel qualified to determine which of the 50 different options it is in practice :P | 20:36:04 |
emily | (without testing, I mean, especially with custom targets) | 20:36:54 |
QuadRadical (Ping) | so, not my fault then? | 20:40:34 |
emily | yes, I think Alyssa's patch is not quite right | 20:42:42 |
QuadRadical (Ping) | okay thanks! | 20:42:52 |
QuadRadical (Ping) | ill test again if its changed | 20:42:58 |
dramforever | oh hi we're doing the pkg-configening? | 20:44:33 |
emily | 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 |
emily | for the build platform it'll just always use unprefixed pkg-config | 20:45:38 |
emily | that's annoying | 20:45:42 |
emily | but I guess shouldn't break anything | 20:46:00 |
dramforever | yuuup... | 20:46:31 |
dramforever | that should work in nixpkgs though | 20:46:39 |
emily | everything everywhere is so hopelessly confused about cross | 20:46:41 |
dramforever | we don't do canadian cross | 20:46:52 |
emily | it's like when things try to think about cross they get even more confused | 20:46:58 |
dramforever | and also can't make a (L, C, C) compiler build other packages | 20:47:04 |
emily | yes, it just means we're always setting a "useless" thing | 20:47:13 |
emily | like the PKG_CONFIG_[buildPlatform] var is never useful | 20:47:24 |
emily | it might also mean we need to set PKG_CONFIG | 20:47:46 |
dramforever | i don't think it's cleaner to leave that out? | 20:47:48 |
emily | or HOST_PKG_CONFIG or whatever | 20:47:49 |
dramforever | so, whatever | 20:47:51 |
emily | because it looks for a relevant var when doing cross | 20:47:57 |
emily | but the logic is kind of tangled | 20:48:02 |