mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
06fc64be13
This commit updates the Clang toolchain's version to 13.0.0, which comes with better C++20 support and improved handling of new features by clang-format. Due to the newly enabled `-Bsymbolic-functions` flag, our Clang binaries will only be 2-4% slower than if we dynamically linked them, but we save hundreds of megabytes of disk space. The `BuildClang.sh` script has been reworked to build the entire toolchain in just three steps: one for the compiler, one for GNU binutils, and one for the runtime libraries. This reduces the complexity of the build script, and will allow us to modify the CI configuration to only rebuild the libraries when our libc headers change. Most of the compile flags have been moved out to a separate CMake cache file, similarly to how the Android and Fuchsia toolchains are implemented within the LLVM repo. This provides a nicer interface than the heaps of command-line arguments. We no longer build separate toolchains for each architecture, as the same Clang binary can compile code for multiple targets. The horrible mess that `SERENITY_CLANG_ARCH` was, has been removed in this commit. Clang happily accepts an `i686-pc-serenity` target triple, which matches what our GCC toolchain accepts. |
||
---|---|---|
.. | ||
CMake | ||
Patches | ||
Stubs | ||
.dockerignore | ||
.gitignore | ||
BuildClang.sh | ||
BuildFuseExt2.sh | ||
BuildIt.sh | ||
BuildPython.sh | ||
BuildQemu.sh | ||
BuildRuby.sh | ||
Dockerfile | ||
README.md |
Serenity Toolchain
This directory contains all toolchain related files. E.g. build scripts for the cross compilation toolchain and build toolchain for ports.
This document previously contained outdated build instructions. Click here for the latest build instructions.