28 Jul 2025 |
John Ericson | oh lol | 12:59:20 |
Alyssa Ross | And you also know how the vendor portion of the triple doesn't do anything useful? | 12:59:25 |
Alyssa Ross | What if we set the vendor component for the host to some hash of the host system | 12:59:42 |
Alyssa Ross | (Possibly only when cross compiling) | 12:59:50 |
John Ericson | ah but the point of this would be to cross-compile always? | 13:00:05 |
Alyssa Ross | Well it would be to cross-compile whenever we think we're cross compiling | 13:00:24 |
Alyssa Ross | Not necessarily always | 13:00:27 |
Alyssa Ross | It's up to us whether we do it for lib.systems.equals stdenv.buildPlatform stdenv.hostPlatform or not. | 13:00:39 |
dramforever | when currently localPlatform.config == crossPlatform.config but lib.systems.equals localPlatform crossPlatform it's cross but autotools doesn't think it is | 13:01:03 |
John Ericson | it could just be foo-build-bar, baz-host-quux too, right? | 13:01:04 |
Alyssa Ross | To start with at least I'd say we don't. | 13:01:05 |
John Ericson | no need for actual hash | 13:01:08 |
dramforever | hmm | 13:01:15 |
Alyssa Ross | In reply to @Ericson2314:matrix.org it could just be foo-build-bar, baz-host-quux too, right? What do you do when those shift in a later build though? Now they're named wrong. | 13:01:33 |
John Ericson | ideally they would not persist to a later build | 13:01:59 |
dramforever | it is what nixpkgs currently calls local and cross though | 13:01:59 |
John Ericson | build should def not persist | 13:02:17 |
John Ericson | host.....I am not sure | 13:02:22 |
Alyssa Ross | In reply to @Ericson2314:matrix.org ideally they would not persist to a later build Hmm. We can't know that… | 13:02:27 |
John Ericson | target currently persists | 13:02:29 |
John Ericson | but that is why everyone should work on GCC NG | 13:02:46 |
John Ericson | :D | 13:02:56 |
John Ericson | we can grep | 13:03:31 |
dramforever | honestly | 13:03:40 |
Alyssa Ross | TBH I think it would be fine | 13:03:49 |
Alyssa Ross | We could try it and switch to hashes if it doesn't work | 13:03:53 |
dramforever | {arch}-unknown-{os}-{abi} and {arch}-cross-{os}-{abi} sounds nice | 13:04:09 |
Alyssa Ross | (I'm not volunteering to implement this — tbh I'm surprised nobody it's telling me it's too bonkers to even be considering) | 13:04:18 |
John Ericson | if we do hashes then I don't think we force build != host? | 13:04:26 |
dramforever | yes i'm bikeshedding | 13:04:27 |