Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/builds/build-clang-10.sh
#!/usr/bin/env bash | #!/usr/bin/env bash | ||||
export LC_ALL=C.UTF-8 | export LC_ALL=C.UTF-8 | ||||
set -euxo pipefail | set -euxo pipefail | ||||
# shellcheck source=../ci-fixture.sh | # shellcheck source=../ci-fixture.sh | ||||
source "${TOPLEVEL}/contrib/teamcity/ci-fixture.sh" | source "${TOPLEVEL}/contrib/teamcity/ci-fixture.sh" | ||||
# Use clang-10 for this build instead of the default clang-8. | # Use clang-10 for this build instead of the default clang-8. | ||||
# This allow for checking that no warning is introduced for newer versions | # This allow for checking that no warning is introduced for newer versions | ||||
# of the compiler | # of the compiler | ||||
CMAKE_FLAGS=( | CMAKE_FLAGS=( | ||||
"-DCMAKE_C_COMPILER=clang-10" | "-DCMAKE_C_COMPILER=clang-10" | ||||
"-DCMAKE_CXX_COMPILER=clang++-10" | "-DCMAKE_CXX_COMPILER=clang++-10" | ||||
) | ) | ||||
build_with_cmake --Werror | build_with_cmake --Werror --junit | ||||
ninja check check-secp256k1 | ninja -k0 check check-secp256k1 | ||||
# TODO do the same with the latest GCC | # TODO do the same with the latest GCC |