💾 Archived View for lofi.haiku-os.org › docs › develop › build › compilers.gmi captured on 2024-03-21 at 15:00:45. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-09-28)
-=-=-=-=-=-=-
For legacy reason, Haiku uses gcc2 to build parts of the system. This only applies to the x86 32bit version of Haiku, which maintains binary compatibility with BeOS applications. The other ports of Haiku are not affected by this, and use a more modern version of GCC (version 10 at the time of the writing).
The compilers are available in the separate “buildtools” repository. This repository contains gcc as well as the binutils (assembler, linker, etc). These are modified versions of the GNU tools, to handle the specifics of Haiku. The gcc2 compiler is still getting some maintenance updates and bugfixes. For the modern tools, the goal is to eventually re-integrate these changes into the upstream version.
There is also work in progress to be able to build Haiku with llvm/clang as an alternative to gcc.
This is an incomplete list of the changes.