| 18 Jul 2025 |
emily | no | 20:59:21 |
emily | it has no notion of build or host | 20:59:23 |
emily | AFAICT | 20:59:27 |
emily | like | 20:59:30 |
emily | as in | 20:59:30 |
emily | the API will always look for host platform deps | 20:59:37 |
dramforever | oh so you just can't get build pkg-config | 20:59:42 |
emily | yeah, only via dev deps | 20:59:52 |
emily | it just will adjust whether it looks at HOST_* or TARGET_* based on whether the current build is cross | 21:00:02 |
emily | so you can mix multiple pkg-config in a single cargo build | 21:00:10 |
emily | but each build script only sees one platform for pkg-config purposes | 21:00:20 |
emily | anyway it's bad and I hate it | 21:00:37 |
dramforever | this is cursed but i can't think of anything off the top of my head that really needs the other | 21:01:32 |
dramforever | so whatever | 21:01:35 |
emily | well | 21:03:41 |
emily | the package we are trying to fix is sort of one of them | 21:03:47 |
emily | kind of? | 21:03:48 |
emily | it's weird | 21:03:49 |
emily | I really think the GNU target-specific cross model ruined everything forever. | 21:04:24 |
emily | if Plan 9 had won everyone would be much less confused about cross. | 21:04:36 |
dramforever | it always bothers me how gnu toolchains just does this | 21:05:32 |
dramforever | i guess it was designed in an era where every different platform is weird | 21:06:27 |
dramforever | like -z pack-relative-relocs, "Supported for i386 and x86-64." | 21:07:08 |
dramforever | how do you even make this architecture specific | 21:07:15 |
dramforever | there's literally one RELR format for all of ELF | 21:07:24 |
dramforever | two if you have to split 32 and 64 | 21:07:37 |
dramforever | anyway </rant> | 21:07:41 |
emily | I assume from their perspective they were innovating by not having entirely separate compiler codebases for every architecture/ | 21:10:56 |
emily | * I assume from their perspective they were innovating by not having entirely separate compiler codebases for every architecture? | 21:10:57 |
emily | though I don't know what the pre-GCC landscape was like | 21:11:07 |