Skip to content

Commit 9327f20

Browse files
authored
Upgrade llvm version from 10.x to 11.x for wamrc and iwasm JIT (#564)
Upgrade it as the latest version of wasi-sdk and emsdk are based on llvm-11, align to it to use the same compiler version. And this also fixes compilation error when building wamrc with llvm-10 in Windows platform. Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
1 parent e9e75a6 commit 9327f20

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

doc/build_wamr.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ Make sure `MSVC` and `cmake` are installed and available in the command line env
240240
241241
Then build the source codes:
242242
``` Bash
243+
cd core/deps/
244+
git clone https://github.com/nodejs/uvwasi.git
243245
cd product-mini/platforms/windows/
244246
mkdir build
245247
cd build

product-mini/platforms/linux/build_llvm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DEPS_DIR=${PWD}/../../../core/deps
88
cd ${DEPS_DIR}
99
if [ ! -d "llvm" ]; then
1010
echo "Clone llvm to core/deps/ .."
11-
git clone --depth 1 --branch release/10.x https://github.com/llvm/llvm-project.git llvm
11+
git clone --depth 1 --branch release/11.x https://github.com/llvm/llvm-project.git llvm
1212
fi
1313

1414
cd llvm

wamr-compiler/build_llvm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def clone_llvm():
1212
llvm_dir = Path("llvm")
1313
if(llvm_dir.exists() == False):
1414
print("Clone llvm to core/deps/ ..")
15-
for line in os.popen("git clone --branch release/10.x https://github.com/llvm/llvm-project.git llvm"):
15+
for line in os.popen("git clone --branch release/11.x https://github.com/llvm/llvm-project.git llvm"):
1616
print(line)
1717
else:
1818
print("llvm source codes already existed")

wamr-compiler/build_llvm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DEPS_DIR=${PWD}/../core/deps
88
cd ${DEPS_DIR}
99
if [ ! -d "llvm" ]; then
1010
echo "Clone llvm to core/deps/ .."
11-
git clone --depth 1 --branch release/10.x https://github.com/llvm/llvm-project.git llvm
11+
git clone --depth 1 --branch release/11.x https://github.com/llvm/llvm-project.git llvm
1212
fi
1313

1414
cd llvm

0 commit comments

Comments
 (0)