2019-08-15 16:51:31 -04:00
#!/usr/bin/env bash
#
2023-08-18 08:04:56 -04:00
# Copyright (c) 2019-present The Bitcoin Core developers
2019-08-15 16:51:31 -04:00
# 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
2020-02-04 21:43:10 -03:00
export CONTAINER_NAME = ci_win64
2023-08-29 04:32:01 -04:00
export CI_IMAGE_NAME_TAG = "docker.io/amd64/debian:bookworm" # Check that https://packages.debian.org/bookworm/g++-mingw-w64-x86-64-posix (version 12.2, similar to guix) can cross-compile
2019-08-15 16:51:31 -04:00
export HOST = x86_64-w64-mingw32
2021-02-09 09:47:53 -03:00
export DPKG_ADD_ARCH = "i386"
2023-06-28 06:10:51 -04:00
export PACKAGES = "nsis g++-mingw-w64-x86-64-posix wine-binfmt wine64 wine32 file"
2019-08-15 16:51:31 -04:00
export RUN_FUNCTIONAL_TESTS = false
export GOAL = "deploy"
2023-07-17 09:09:44 -04:00
# Prior to 11.0.0, the mingw-w64 headers were missing noreturn attributes, causing warnings when
# cross-compiling for Windows. https://sourceforge.net/p/mingw-w64/bugs/306/
# https://github.com/mingw-w64/mingw-w64/commit/1690994f515910a31b9fb7c7bd3a52d4ba987abe
2024-07-24 06:54:41 -04:00
export BITCOIN_CONFIG = " -DREDUCE_EXPORTS=ON -DBUILD_GUI_TESTS=OFF \
-DCMAKE_CXX_FLAGS= '-Wno-error=return-type -Wno-error=maybe-uninitialized -Wno-error=array-bounds' "