3 ms·
> On a project such as OpenBSD they cannot suddenly drop platforms and only support amd64 as portability They… don't need to? That rustc can't compile itself o
by masklinn 9y ago
> On a project such as OpenBSD they cannot suddenly drop platforms and only support amd64 as portability
They… don't need to? That rustc can't compile itself on i386 doesn't mean you can't ship a rustc for i386, it just means you have to cross-compile it.
- _jal 9y agoAddressed in the article. > In OpenBSD there is a strict requirement that base builds base.
- raimue 9y agoI see it as part of portability that you do not need to use any external system for bootstrapping. Imagine as a developer who compiles base from source you had to find another system only to compile rustc and then transfer it to your machine. And you would not have to do this only once, but for every compiler bug fix coupled with the overall rapid evolution of Rust. I think many in the OpenBSD community would oppose such an approach, even without further considering other aspects such as security implications.
- clort 9y agoThis is the case IIRC with Android - even though I want to build it for a 32-bit ARM architecture, I can't build it on anything but 64-bit. I guess the vast majority of Android systems cannot even compile Android! https://source.android.com/setup/requirements https://source.android.com/setup/requirements
- masklinn 9y ago> I see it as part of portability that you do not need to use any external system for bootstrapping. You always need an external system for bootstrapping, you're not assembling the base C compiler with which you're compiling everything else. At one point you need to obtain a compiler from somewhere else.
- _jal 9y ago...And the point is that the OpenBSD project has a policy of self-hosting. The bootstrap compiler for base (along with everything else needed to build base) must exist in base.