bls|ci: Fix C++17 build, add it to CI (#4055)

* ci: Add C++17 build

* bls: Add explicit CBLSSecretKey copy ctor and operator=
This commit is contained in:
UdjinM6 2021-04-28 17:44:01 +03:00 committed by GitHub
parent 08ebd31fdb
commit 704d34b2e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 0 deletions

View File

@ -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

View File

@ -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"

View File

@ -231,6 +231,8 @@ public:
using CBLSWrapper::CBLSWrapper;
CBLSSecretKey() {}
CBLSSecretKey(const CBLSSecretKey&) = default;
CBLSSecretKey& operator=(const CBLSSecretKey&) = default;
void AggregateInsecure(const CBLSSecretKey& o);
static CBLSSecretKey AggregateInsecure(const std::vector<CBLSSecretKey>& sks);