https://gitlab.com/tezos/tezos
Raw File
Tip revision: 655628b991b2f19721e7c970a360302b5bd1174f authored by Arvid Jakobsson on 13 February 2024, 10:15:23 UTC
wip [ci/update_records/update.ml] handle new names
Tip revision: 655628b
kernels_check_clang.sh
#!/usr/bin/env bash

# Copyright 2023 Trilitech <contact@trili.tech>
# SPDX-License-Identifier: MIT

if [ -z "$CC_wasm_unknown_unknown" ]; then
  CLANG=$(which clang 2> /dev/null)

  CLANG_HAS_WASM=$([ -e "$CLANG" ] && $CLANG -print-targets | grep 'wasm32')

  if [ -z "$CLANG_HAS_WASM" ]; then
    echo "#############################################################################"
    echo "default clang '$CLANG' missing toolchain 'wasm32-unknown-unknown'"
    echo "recommend setting 'CC_wasm_unknown_unknown' to a more recent install of clang"
    echo ""
    echo "'\$CC_wasm_unknown_unknown -print-targets' should contain 'wasm32'"
    echo "#############################################################################"
    exit 1
  fi
fi
back to top