wasm-micro-runtime/tests/standalone/test-running-modes/build_iwasm.sh
2024-06-19 16:40:37 +08:00

16 lines
341 B
Bash
Executable File

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