File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# Copyright (C) 2020 Intel Corporation. All rights reserved.
44# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55
6- /usr/bin/env python3 -m pip install --user -r ../build-scripts/requirements.txt
6+ TEMP_DIR=$( mktemp -d)
7+
8+ cleanup () {
9+ local exit_code=$?
10+ rm -rf " $TEMP_DIR "
11+ exit $exit_code
12+ }
13+
14+ trap cleanup EXIT INT TERM
15+
16+ /usr/bin/env python3 -m venv --clear " $TEMP_DIR "
17+ source " $TEMP_DIR /bin/activate"
18+ /usr/bin/env python3 -m pip install -r ../build-scripts/requirements.txt
719/usr/bin/env python3 ../build-scripts/build_llvm.py " $@ "
Original file line number Diff line number Diff line change 33# Copyright (C) 2020 Intel Corporation. All rights reserved.
44# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55
6- /usr/bin/env python3 -m pip install --user -r ../build-scripts/requirements.txt
7- /usr/bin/env python3 ../build-scripts/ build_llvm.py --platform arc " $@ "
6+ SCRIPT_DIR= " $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
7+ $SCRIPT_DIR / build_llvm.sh --platform arc " $@ "
Original file line number Diff line number Diff line change 33# Copyright (C) 2020 Intel Corporation. All rights reserved.
44# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55
6- /usr/bin/env python3 -m pip install --user -r ../build-scripts/requirements.txt
7- /usr/bin/env python3 ../build-scripts/ build_llvm.py --platform xtensa " $@ "
6+ SCRIPT_DIR= " $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
7+ $SCRIPT_DIR / build_llvm.sh --platform xtensa " $@ "
You can’t perform that action at this time.
0 commit comments