From eacaf63f31efd39fce0854d8eb1a8c65c552fcd7 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Tue, 23 Mar 2021 16:17:44 +0300 Subject: [PATCH 1/2] ci: Add C++17 build --- .gitlab-ci.yml | 7 +++++++ ci/matrix.sh | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 52391aa2c205..95458e4ce6f0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -237,6 +237,13 @@ linux64-build: variables: BUILD_TARGET: linux64 +linux64_cxx17-build: + extends: .build-template + needs: + - x86_64-unknown-linux-gnu-debug + variables: + BUILD_TARGET: linux64_cxx17 + linux64_nowallet-build: extends: - .build-template diff --git a/ci/matrix.sh b/ci/matrix.sh index 5fe1c363ab53..3ff611c36c75 100755 --- a/ci/matrix.sh +++ b/ci/matrix.sh @@ -67,6 +67,14 @@ elif [ "$BUILD_TARGET" = "linux64" ]; then export PYZMQ=true export RUN_UNITTESTS=true export RUN_INTEGRATIONTESTS=true +elif [ "$BUILD_TARGET" = "linux64_cxx17" ]; then + export HOST=x86_64-unknown-linux-gnu + export DEP_OPTS="NO_UPNP=1 DEBUG=1" + export BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports --enable-crash-hooks --enable-c++17" + export CPPFLAGS="-DDEBUG_LOCKORDER -DENABLE_DASH_DEBUG -DARENA_DEBUG" + export PYZMQ=true + export RUN_UNITTESTS=true + export RUN_INTEGRATIONTESTS=true elif [ "$BUILD_TARGET" = "linux64_nowallet" ]; then export HOST=x86_64-unknown-linux-gnu export DEP_OPTS="NO_WALLET=1" From b68c46f38a9e65741416c81ee3bf417117cafeee Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Tue, 23 Mar 2021 18:09:33 +0300 Subject: [PATCH 2/2] bls: Add explicit CBLSSecretKey copy ctor and operator= --- src/bls/bls.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bls/bls.h b/src/bls/bls.h index 80f4f19f6cf4..47be409ad9a3 100644 --- a/src/bls/bls.h +++ b/src/bls/bls.h @@ -231,6 +231,8 @@ class CBLSSecretKey : public CBLSWrapper& sks);