From f6777695bcc4a48e0c7c0cd4259e8a948487df93 Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Sun, 3 Nov 2024 08:35:16 +0000 Subject: [PATCH] merge bitcoin#27682: Bump minimum supported Clang to clang-10 --- build-aux/m4/l_filesystem.m4 | 11 +---------- ci/test/05_before_script.sh | 3 --- doc/dependencies.md | 2 +- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/build-aux/m4/l_filesystem.m4 b/build-aux/m4/l_filesystem.m4 index ca3a0cd41c061..7e577f7ae56d6 100644 --- a/build-aux/m4/l_filesystem.m4 +++ b/build-aux/m4/l_filesystem.m4 @@ -3,7 +3,6 @@ dnl Distributed under the MIT software license, see the accompanying dnl file COPYING or http://www.opensource.org/licenses/mit-license.php. # GCC 8.1 and earlier requires -lstdc++fs -# Clang 8.0.0 (libc++) and earlier requires -lc++fs m4_define([_CHECK_FILESYSTEM_testbody], [[ #include @@ -26,20 +25,12 @@ AC_DEFUN([CHECK_FILESYSTEM], [ AC_MSG_RESULT([yes]) ],[ AC_MSG_RESULT([no]) - SAVED_LIBS="$LIBS" - LIBS="$SAVED_LIBS -lstdc++fs" + LIBS="$LIBS -lstdc++fs" AC_MSG_CHECKING([whether std::filesystem needs -lstdc++fs]) AC_LINK_IFELSE([AC_LANG_SOURCE([_CHECK_FILESYSTEM_testbody])],[ AC_MSG_RESULT([yes]) - ],[ - AC_MSG_RESULT([no]) - AC_MSG_CHECKING([whether std::filesystem needs -lc++fs]) - LIBS="$SAVED_LIBS -lc++fs" - AC_LINK_IFELSE([AC_LANG_SOURCE([_CHECK_FILESYSTEM_testbody])],[ - AC_MSG_RESULT([yes]) ],[ AC_MSG_FAILURE([cannot figure out how to use std::filesystem]) - ]) ]) ]) diff --git a/ci/test/05_before_script.sh b/ci/test/05_before_script.sh index 07dfaad234031..eda748f74c60e 100755 --- a/ci/test/05_before_script.sh +++ b/ci/test/05_before_script.sh @@ -26,9 +26,6 @@ if [[ $HOST = *-mingw32 ]]; then fi if [ -z "$NO_DEPENDS" ]; then if [[ $DOCKER_NAME_TAG == centos* ]]; then - # CentOS has problems building the depends if the config shell is not explicitly set - # (i.e. for libevent a Makefile with an empty SHELL variable is generated, leading to - # an error as the first command is executed) SHELL_OPTS="LC_ALL=en_US.UTF-8 CONFIG_SHELL=/bin/bash" else SHELL_OPTS="CONFIG_SHELL=" diff --git a/doc/dependencies.md b/doc/dependencies.md index 954bac71db1ea..94e3fd081c54c 100644 --- a/doc/dependencies.md +++ b/doc/dependencies.md @@ -8,7 +8,7 @@ You can find installation instructions in the `build-*.md` file for your platfor | --- | --- | | [Autoconf](https://www.gnu.org/software/autoconf/) | [2.69](https://github.com/bitcoin/bitcoin/pull/17769) | | [Automake](https://www.gnu.org/software/automake/) | [1.13](https://github.com/bitcoin/bitcoin/pull/18290) | -| [Clang](https://clang.llvm.org) | [8.0](https://github.com/bitcoin/bitcoin/pull/24164) | +| [Clang](https://clang.llvm.org) | [10.0](https://github.com/bitcoin/bitcoin/pull/27682) | | [GCC](https://gcc.gnu.org) | [8.1](https://github.com/bitcoin/bitcoin/pull/23060) | | [Python](https://www.python.org) (scripts, tests) | [3.9](https://github.com/bitcoin/bitcoin/pull/28211) | | [systemtap](https://sourceware.org/systemtap/) ([tracing](tracing.md))| N/A |