wasm-micro-runtime/wamr-compiler/build_llvm.sh
YAMAMOTO Takashi 082e558d66
wamr-compiler/build_llvm.sh: use dot instead of source (#4541)
note that dot is in posix and more portable than source.
2025-08-11 15:06:00 +08:00

20 lines
469 B
Bash
Executable File

#!/bin/sh
# Copyright (C) 2020 Intel Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
TEMP_DIR=$(mktemp -d)
cleanup() {
local exit_code=$?
rm -rf "$TEMP_DIR"
exit $exit_code
}
trap cleanup EXIT INT TERM
/usr/bin/env python3 -m venv --clear "$TEMP_DIR"
. "$TEMP_DIR/bin/activate"
/usr/bin/env python3 -m pip install -r ../build-scripts/requirements.txt
/usr/bin/env python3 ../build-scripts/build_llvm.py "$@"