aboutsummaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-05-15 15:03:30 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-05-18 12:24:40 +0200
commitfa953f15bfcf95df9aa9c91e1c4b56a205f4d1ae (patch)
tree2a7d8d9e87ebdebf95c81c296b5858fe7436109e /build-aux
parentfa69955e741dd60dc6160e81cf223bbecd286806 (diff)
downloadbitcoin-fa953f15bfcf95df9aa9c91e1c4b56a205f4d1ae.tar.xz
build: Bump minimum supported GCC to g++-9
Also, update the code to use constexpr, which does not work in g++-8. Also, drop the no longer needed build-aux/m4/l_filesystem.m4.
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/m4/l_filesystem.m438
1 files changed, 0 insertions, 38 deletions
diff --git a/build-aux/m4/l_filesystem.m4 b/build-aux/m4/l_filesystem.m4
deleted file mode 100644
index 7e577f7ae5..0000000000
--- a/build-aux/m4/l_filesystem.m4
+++ /dev/null
@@ -1,38 +0,0 @@
-dnl Copyright (c) 2022 The Bitcoin Core developers
-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
-
-m4_define([_CHECK_FILESYSTEM_testbody], [[
- #include <filesystem>
-
- namespace fs = std::filesystem;
-
- int main() {
- (void)fs::current_path().root_name();
- return 0;
- }
-]])
-
-AC_DEFUN([CHECK_FILESYSTEM], [
-
- AC_LANG_PUSH(C++)
-
- AC_MSG_CHECKING([whether std::filesystem can be used without link library])
-
- AC_LINK_IFELSE([AC_LANG_SOURCE([_CHECK_FILESYSTEM_testbody])],[
- AC_MSG_RESULT([yes])
- ],[
- AC_MSG_RESULT([no])
- 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_FAILURE([cannot figure out how to use std::filesystem])
- ])
- ])
-
- AC_LANG_POP
-])