mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
0a22b3ed3d
a47635baad
feat: drop symbol check from CI to unify with bitcoin, keep it for qt5 only (Konstantin Akimov)0c38cc325e
fix: drop -static-libstc++ from depends/hosts/{linux,mingw32}.mk which is clang-only (Konstantin Akimov)14a67ee85e
Merge #20182: ci: Build with --enable-werror by default, and document exceptions (MarcoFalke) Pull request description: ## Issue being fixed or feature implemented As discovered in #5957: Jobs tsan/ubsan fails with backport bitcoin#20182 it fails, because both tsan and ubsan jobs use clang but all other jobs use gcc. Somehow, after configure there are set incorrect options: ``` clang++-16 -std=c++17 -c -pipe -static-libstdc++ -O1 -Werror -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_LIBCPP_DEBUG=1 -I/builds/dashpay/dash/depends/x86_64-pc-linux-gnu/include/ conftest.cpp ``` `clang` doesn't support `-static-llibstdc++` which is supposed to be gcc-only, it cause this failure: ``` clang: error: argument unused during compilation: '-static-libstdc++' [-Werror,-Wunused-command-line-argument] ``` This failure make `autoconf` to think that clang doesn't support `-Werror` and fails with this error. So, you can't activate this flag. ## What was done? Backport bitcoin#20182 and related fixes to make it works ## How Has This Been Tested? CI now succeed with bitcoin#20182. It means, that -Werror activated for clang; also there are not warnings such as: ``` clang: error: argument unused during compilation: '-static-libstdc++' [-Werror,-Wunused-command-line-argument] ``` https://gitlab.com/dashpay/dash/-/jobs/6494328698 ## Breaking Changes N/A ## Checklist: - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have added or updated relevant unit/integration/functional/e2e tests - [x] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone Top commit has no ACKs. Tree-SHA512: f912824eaa1ec7513cda7278a3df9e067b0ab48a2d174b18654c8070aa6544bac33a52f494c1e35b4eab10392c1f26df4663e21d12a4dfff7c0a4a6a01ff9551
18 lines
628 B
Bash
Executable File
18 lines
628 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Copyright (c) 2019-2020 The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
export CONTAINER_NAME=ci_macos_cross
|
|
export HOST=x86_64-apple-darwin
|
|
export PACKAGES="cmake libcap-dev libz-dev libbz2-dev libtinfo5 python3-setuptools"
|
|
export XCODE_VERSION=12.2
|
|
export XCODE_BUILD_ID=12B45b
|
|
export RUN_UNIT_TESTS=false
|
|
export RUN_FUNCTIONAL_TESTS=false
|
|
export GOAL="all deploy"
|
|
export BITCOIN_CONFIG="--with-gui --enable-reduce-exports --disable-miner --with-boost-process"
|