Skip to content

Commit 23fc39e

Browse files
committed
improve build_llvm.sh
1 parent 390e780 commit 23fc39e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

wamr-compiler/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ sudo apt-get install git build-essential cmake g++-multilib libgcc-9-dev lib32gc
1313

1414
```shell
1515
cd wamr-compiler
16+
# or explicitly with bash: bash ./build_llvm.sh
1617
./build_llvm.sh (or "./build_llvm_xtensa.sh" to support xtensa target)
1718
mkdir build && cd build
1819
cmake .. (or "cmake .. -DWAMR_BUILD_PLATFORM=darwin" for MacOS)

wamr-compiler/build_llvm.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22

33
# Copyright (C) 2020 Intel Corporation. All rights reserved.
44
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55

6+
set -e
7+
68
TEMP_DIR=$(mktemp -d)
79

810
cleanup() {

0 commit comments

Comments
 (0)