37b07b121f27b42aa36e265bdba15211ce2ef9ad
This bootstraps rustc via the mrustc alternative compiler. The build process is extraordinarily ugly because rustc maintainers cargo culted target triple strings without understanding what they are, and completely mishandles them. They also appear to lack fundamental system understanding and assume musl can only be used for static linking. The build process also fails to populate their so called self-contained library directory, so it is manually put together here. This setup uses the vendored LLVM for multiple reasons: the fact that rustc maintainers manage to fuck up so badly they simultaneously pass GCC-only and Clang-only flags when using an LLVM configured to use libc++ instead of GNU slop, and the immense maintenance burden to keep this up to date enough to use Rosa OS LLVM. For now, time and effort saved from trying to mutilate this pile of garbage into working with a proper LLVM build more than compensates for the wasted CPU time. GCC libraries are included in the output because despite the utter reluctance to do dynamic linking correctly on musl, it seems that rustc is also incapable of passing the correct linker flags to produce static executables, and the miserable mrustc Makefiles make it impossible to specify custom linker flags. From my previous experience producing a static virtiofsd build, it would require multiple arguments per library, all of them in rustc's fucked up custom syntax, and I am not ready to deal with that. To avoid contaminating future stages with gcc, this package includes only libraries required at runtime. Signed-off-by: Ophestra <cat@gensokyo.uk>
Description
Software packages not part of the base system. Targets the staging branch.
92 KiB
Languages
Diff
100%