2019-08-15 16:51:31 -04:00
#!/usr/bin/env bash
#
2023-08-23 22:48:44 +02: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
2023-12-04 09:44:21 +01:00
export CI_IMAGE_NAME_TAG = "docker.io/ubuntu:24.04"
2020-02-05 08:43:10 +08:00
export CONTAINER_NAME = ci_native_fuzz
2024-08-12 13:46:28 +02:00
export APT_LLVM_V = "19"
export PACKAGES = " clang- ${ APT_LLVM_V } llvm- ${ APT_LLVM_V } libclang-rt- ${ APT_LLVM_V } -dev libevent-dev libboost-dev libsqlite3-dev "
2019-08-15 16:51:31 -04:00
export NO_DEPENDS = 1
export RUN_UNIT_TESTS = false
export RUN_FUNCTIONAL_TESTS = false
export RUN_FUZZ_TESTS = true
export GOAL = "install"
2023-07-26 13:05:29 +02:00
export CI_CONTAINER_CAP = "--cap-add SYS_PTRACE" # If run with (ASan + LSan), the container needs access to ptrace (https://github.com/google/sanitizers/issues/764)
2024-07-24 11:54:41 +01:00
export BITCOIN_CONFIG = " \
-DBUILD_FOR_FUZZING= ON \
-DSANITIZERS= fuzzer,address,undefined,float-divide-by-zero,integer \
2024-08-12 13:46:28 +02:00
-DCMAKE_C_COMPILER= clang-${ APT_LLVM_V } \
-DCMAKE_CXX_COMPILER= clang++-${ APT_LLVM_V } \
2024-07-24 11:54:41 +01:00
-DCMAKE_C_FLAGS= '-ftrivial-auto-var-init=pattern' \
-DCMAKE_CXX_FLAGS= '-ftrivial-auto-var-init=pattern' \
"
2024-08-12 13:46:28 +02:00
export LLVM_SYMBOLIZER_PATH = " /usr/bin/llvm-symbolizer- ${ APT_LLVM_V } "