bitcoin/ci/test/00_setup_env_mac.sh
Hennadii Stepanov 6ee87eb0f5 ci: Add -Wno-error flags for macOS jobs
Github-Pull: #29362
Rebased-From: 17861b9cd594bcccff47c4105bdc9da97f8ec001
2024-02-21 00:41:24 +00:00

26 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
#
# Copyright (c) 2019-present 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 SDK_URL=${SDK_URL:-https://bitcoincore.org/depends-sources/sdks}
export CONTAINER_NAME=ci_macos_cross
export CI_IMAGE_NAME_TAG="docker.io/ubuntu:22.04"
export HOST=x86_64-apple-darwin
export PACKAGES="cmake libz-dev python3-setuptools zip"
export XCODE_VERSION=12.2
export XCODE_BUILD_ID=12B45b
export RUN_UNIT_TESTS=false
export RUN_FUNCTIONAL_TESTS=false
export GOAL="deploy"
# -Wno-error=deprecated-declarations is to disable errors for deprecation warnings:
# "'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0".
# False-positive warning is fixed with clang 17, remove this when that version
# can be used.
export BITCOIN_CONFIG="--with-gui --enable-reduce-exports CXXFLAGS=-Wno-error=deprecated-declarations LDFLAGS=-Wno-error=unused-command-line-argument"