From 591e45657fdea0dbeab69b4bd1bfefb99b0b8c47 Mon Sep 17 00:00:00 2001 From: Desour Date: Thu, 29 Jun 2023 11:03:16 +0200 Subject: [PATCH] Bump minimum clang version to 7.0.1 std::variant is broken in clang < 7.0.1 with libstdc++ see: https://github.com/llvm/llvm-project/issues/32569 --- .github/workflows/build.yml | 8 ++++---- doc/compiling/linux.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f2a03c22d..74ea839ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -76,21 +76,21 @@ jobs: ./bin/minetest --run-unittests # Older clang version (should be close to our minimum supported version) - clang_6_0: + clang_7: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - name: Install deps run: | source ./util/ci/common.sh - install_linux_deps clang-6.0 valgrind + install_linux_deps clang-7 valgrind - name: Build run: | ./util/ci/build.sh env: - CC: clang-6.0 - CXX: clang++-6.0 + CC: clang-7 + CXX: clang++-7 - name: Unittest run: | diff --git a/doc/compiling/linux.md b/doc/compiling/linux.md index b2e6392b4..d977cfe20 100644 --- a/doc/compiling/linux.md +++ b/doc/compiling/linux.md @@ -4,7 +4,7 @@ | Dependency | Version | Commentary | | ---------- | ------- | ---------- | -| GCC | 7.5+ | or Clang 6.0+ | +| GCC | 7.5+ | or Clang 7.0.1+ | | CMake | 3.5+ | | | IrrlichtMt | - | Custom version of Irrlicht, see https://github.com/minetest/irrlicht | | Freetype | 2.0+ | |