https://gitlab.com/tezos/tezos
Raw File
Tip revision: b1ef3b70209cc658d6b255c1093984ab3e912443 authored by Alain Mebsout on 25 March 2024, 13:42:07 UTC
RPC: check address/port not in use before starting
Tip revision: b1ef3b7
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