Truly independent web browser
Meta: Update toolchains to clang version 22 and gcc version 16
Timothy Flynn2b74d8840936
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.ymlindex 053a11bdf0d..d2c374154a0 100644--- a/.github/actions/setup/action.yml+++ b/.github/actions/setup/action.yml@@ -108,7 +108,7 @@ runs:ccache \coreutils \libtool \- llvm@21 \+ llvm@22 \nasm \ninja \pkg-config \diff --git a/Documentation/BuildInstructionsLadybird.md b/Documentation/BuildInstructionsLadybird.mdindex 16751dbd9a2..d0c8e4e7f77 100644--- a/Documentation/BuildInstructionsLadybird.md+++ b/Documentation/BuildInstructionsLadybird.md@@ -9,7 +9,7 @@ Qt6.10+ development packages, nasm, additional build tools, and a C++23 capableA Rust toolchain is also required. You can install it via [rustup](https://rustup.rs/).-We currently use gcc-14 and clang-21 in our CI pipeline. If these versions are not available on your system, see+We currently use gcc-16 and clang-22 in our CI pipeline. If these versions are not available on your system, see[`find_compiler.py`](../Meta/Utils/find_compiler.py) for the minimum compatible version.CMake 3.30 or newer must be available in $PATH.@@ -54,17 +54,17 @@ sudo wget -O /usr/share/keyrings/llvm-snapshot.gpg.key https://apt.llvm.org/llvm# Optional: Verify the GPG key manually# Use the key to authorize an entry for apt.llvm.org in apt sources list-echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg.key] https://apt.llvm.org/$(lsb_release -sc)/ llvm-toolchain-$(lsb_release -sc)-21 main" | sudo tee -a /etc/apt/sources.list.d/llvm.list+echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg.key] https://apt.llvm.org/$(lsb_release -sc)/ llvm-toolchain-$(lsb_release -sc)-22 main" | sudo tee -a /etc/apt/sources.list.d/llvm.list# Update apt package list and install clang and associated packages-sudo apt update -y && sudo apt install clang-21 clangd-21 clang-tools-21 clang-format-21 clang-tidy-21 lld-21 -y+sudo apt update -y && sudo apt install clang-22 clangd-22 clang-tools-22 clang-format-22 clang-tidy-22 lld-22 -y```- Alternative: Install gcc from [Ubuntu Toolchain PPA](https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test):```bashsudo add-apt-repository ppa:ubuntu-toolchain-r/test-sudo apt update && sudo apt install g++-14 libstdc++-14-dev+sudo apt update && sudo apt install g++-16 libstdc++-16-dev```### Arch Linux/Manjaro:@@ -82,7 +82,7 @@ sudo dnf install autoconf-archive automake ccache cmake curl git glslang libdrm-### openSUSE:```-sudo zypper install autoconf-archive automake ccache cmake curl gcc14 gcc14-c++ git liberation-fonts libglvnd-devel libpulse-devel libtool nasm ncurses-devel ninja qt6-base-private-devel qt6-positioning-devel qt6-tools-devel qt6-wayland-devel tar unzip xcb-util-wm-devel zip+sudo zypper install autoconf-archive automake ccache cmake curl gcc16 gcc16-c++ git liberation-fonts libglvnd-devel libpulse-devel libtool nasm ncurses-devel ninja qt6-base-private-devel qt6-positioning-devel qt6-tools-devel qt6-wayland-devel tar unzip xcb-util-wm-devel zip```If one or more of the base repository packages are flagged as having an out-of-date version during the build process, you may need add the `devel:tools:building` repository. For example, on Leap 15.6, the `autoconf` package might be version 2.69, whereas the `gperf` package requires 2.70 to build.@@ -142,7 +142,7 @@ brew install autoconf autoconf-archive automake ccache cmake libtool nasm ninjaIf you wish to use clang from homebrew instead:```-brew install llvm@21+brew install llvm@22```> [!NOTE]diff --git a/Meta/Linters/lint_clang_format.py b/Meta/Linters/lint_clang_format.pyindex d7661ae16d7..6a5dbc041e1 100755--- a/Meta/Linters/lint_clang_format.py+++ b/Meta/Linters/lint_clang_format.py@@ -20,7 +20,7 @@ from Utils.host_platform import HostSystemfrom Utils.host_platform import Platformfrom Utils.utils import run_command-CLANG_FORMAT_MAJOR_VERSION = 21+CLANG_FORMAT_MAJOR_VERSION = 22CLANG_FORMAT_EXECUTABLE = "clang-format"diff --git a/Meta/Utils/find_compiler.py b/Meta/Utils/find_compiler.pyindex 08947685576..57c0e031b31 100755--- a/Meta/Utils/find_compiler.py+++ b/Meta/Utils/find_compiler.py@@ -132,6 +132,8 @@ def pick_host_compiler(platform: Platform, cc: str, cxx: str, clang_only: bool =gcc_candidates = ["gcc","gcc-14",+ "gcc-15",+ "gcc-16",]if platform.host_system == HostSystem.BSD: