https://gitlab.com/tezos/tezos
Raw File
Tip revision: 66c0cc7187ff7e3f99f6223c22b8328e689a8dc7 authored by Mathias Bourgoin on 29 March 2024, 09:13:52 UTC
fixup! Proto/test/integration: update other tests (with smaller changes)
Tip revision: 66c0cc7
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