build_iwasm.sh 341 B

123456789101112131415
  1. #!/bin/bash
  2. #
  3. # Copyright (C) 2019 Intel Corporation. All rights reserved.
  4. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  5. #
  6. set -e
  7. PLATFORM=$(uname -s | tr A-Z a-z)
  8. readonly WAMR_DIR="$PWD/../../.."
  9. rm -fr build && mkdir build && cd build
  10. cmake ${WAMR_DIR}/product-mini/platforms/${PLATFORM} $1
  11. make -j > /dev/null 2>&1
  12. cd ..