| 29 Mar 2026 |
dish [Fox/It/She] | https://github.com/NixOS/nixpkgs/blob/46db2e09e1d3f113a13c0d7b81e2f221c63b8ce9/pkgs/development/compilers/rust/rustc.nix#L39 | 19:40:45 |
whispers [& it/fae] | we don't want to do that, that phase is what builds rustc. doing a stage 2 build (theoretically) gives us the best binary for building everything else with | 19:41:40 |
whispers [& it/fae] | and is the "intended" way for rustc to be distributed | 19:41:57 |
whispers [& it/fae] | * | 19:42:24 |
dish [Fox/It/She] | yeah fair | 19:42:40 |
whispers [& it/fae] | i did notice some weird build steps, like that build logs say "Building stage2 compiler artifacts" with the same information two or three times, but i don't know if that's because the logging is lacking or something else. (that's not unique to this, you can see the same logs on hydra) | 19:44:07 |
whispers [& it/fae] | * i did notice some weird build steps, like that build logs say "Building stage2 compiler artifacts" with the same information two or three times, but i don't know if that's because the logging is lacking or it's actually running duplicate builds. (that's not unique to this, you can see the same logs on hydra) | 19:44:27 |
whispers [& it/fae] | * | 19:44:49 |
whispers [& it/fae] | * | 19:44:59 |
whispers [& it/fae] | * | 19:45:16 |
whispers [& it/fae] | oh and stage 1 builds also break anything that links against rustc_private | 19:50:27 |
whispers [& it/fae] | i don't remember the machinery involved with doing that (it might be nightly only?) so i don't know if anything in nixpkgs does that though | 19:51:03 |
whispers [& it/fae] | * | 19:51:39 |
whispers [& it/fae] | * | 19:53:04 |
whispers [& it/fae] | * | 19:53:18 |
whispers [& it/fae] | okay yeah i think that's perma-unstable so basically a non-concern | 19:55:00 |
dish [Fox/It/She] | removing rust-installer and generate-copyright from intermediate builds should be fairly easy, just a few-line patch | 20:17:21 |
dish [Fox/It/She] | * removing rust-installer and generate-copyright from intermediate builds should be fairly easy, just a few-line patch from what i can see just looking at the code | 20:17:31 |
whispers [& it/fae] | i think you can also just do it by passing the right command like flags to ./x.py install (specifying which things to install instead of just using the defaults) but i haven't tried | 20:18:27 |
whispers [& it/fae] | * i think you can also just do it by passing the right command like flags to ./x.py install (specifying which things to install instead of just using the defaults) but I'll have to test that later | 20:20:36 |
whispers [& it/fae] | * i think you can also just do it by passing the right command line flags to ./x.py install (specifying which things to install instead of just using the defaults) but I'll have to test that later | 20:21:36 |
dish [Fox/It/She] | from looking at bootstrap i think they're still built so you have to remove them before running install | 20:24:18 |
whispers [& it/fae] | nope, they aren't build until installPhase in my logs | 20:25:32 |
dish [Fox/It/She] | huh interesting | 20:25:46 |
whispers [& it/fae] | * | 20:25:55 |
whispers [& it/fae] | i think because we specifically do ./x.py build library cargo; just ./x.py build does far more builds than we need | 20:26:43 |
dish [Fox/It/She] | im looking and there doesn't appear to be any flags to disable running generate-copyright | 20:28:59 |
dish [Fox/It/She] | probably since they don't expect this usecase | 20:30:25 |
dish [Fox/It/She] | and per bootstrap.example.toml, installing the extended tools will always install the rust-installer tools, with no apparent way to disable that either | 20:30:57 |
dish [Fox/It/She] | i might have missed something though since bootstrap's logic is pretty complex | 20:31:07 |