aboutsummaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-05-17 10:09:45 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-05-17 10:30:41 +0200
commitfad2c200f46196af69ccd98b6b637d23ceaf8c45 (patch)
treeb0d6b60d240e3e0444f0681a0872891fd09eb146 /build-aux
parentfad7cfee8d6d7bdebd8db950cef09264c91dbb3c (diff)
downloadbitcoin-fad2c200f46196af69ccd98b6b637d23ceaf8c45.tar.xz
build: Bump minimum Clang to clang-10
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/m4/l_filesystem.m411
1 files changed, 1 insertions, 10 deletions
diff --git a/build-aux/m4/l_filesystem.m4 b/build-aux/m4/l_filesystem.m4
index ca3a0cd41c..7e577f7ae5 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 <filesystem>
@@ -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])
- ])
])
])