00_setup_env_native_chimera_lto.sh raw

   1  #!/usr/bin/env bash
   2  #
   3  # Copyright (c) The Bitcoin Core developers
   4  # Distributed under the MIT software license, see the accompanying
   5  # file COPYING or https://opensource.org/license/mit.
   6  
   7  # This config is experimental, and may not be reproducible, given
   8  # the use of a rolling distro.
   9  
  10  export LC_ALL=C.UTF-8
  11  
  12  export CONTAINER_NAME=ci_native_chimera_musl
  13  export CI_IMAGE_NAME_TAG="mirror.gcr.io/chimeralinux/chimera"
  14  export CI_BASE_PACKAGES="ccache chimerautils chimerautils-extra clang cmake curl e2fsprogs git gmake gtar linux-headers procps python-devel python-pip rsync util-linux util-linux-lscpu"
  15  export PIP_PACKAGES="--break-system-packages pyzmq pycapnp"
  16  # NO_QT=1 because Qt needs various patches: https://github.com/chimera-linux/cports/tree/master/main/qt6-qtbase/patches
  17  export DEP_OPTS="build_CC=clang build_CXX=clang++ build_TAR=gtar AR=llvm-ar CC=clang CXX=clang++ NM=llvm-nm RANLIB=llvm-ranlib STRIP=llvm-strip NO_QT=1"
  18  export GOAL="install"
  19  export BITCOIN_CONFIG="\
  20   --preset=dev-mode \
  21   -DBUILD_GUI=OFF \
  22   -DREDUCE_EXPORTS=ON \
  23   -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
  24  "
  25