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>
This commit is contained in:
Wenyong Huang 2021-03-10 16:08:50 +08:00 committed by GitHub
parent e9e75a6b09
commit 9327f20ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View File

@ -240,6 +240,8 @@ Make sure `MSVC` and `cmake` are installed and available in the command line env
Then build the source codes: Then build the source codes:
``` Bash ``` Bash
cd core/deps/
git clone https://github.com/nodejs/uvwasi.git
cd product-mini/platforms/windows/ cd product-mini/platforms/windows/
mkdir build mkdir build
cd build cd build

View File

@ -8,7 +8,7 @@ DEPS_DIR=${PWD}/../../../core/deps
cd ${DEPS_DIR} cd ${DEPS_DIR}
if [ ! -d "llvm" ]; then if [ ! -d "llvm" ]; then
echo "Clone llvm to core/deps/ .." echo "Clone llvm to core/deps/ .."
git clone --depth 1 --branch release/10.x https://github.com/llvm/llvm-project.git llvm git clone --depth 1 --branch release/11.x https://github.com/llvm/llvm-project.git llvm
fi fi
cd llvm cd llvm

View File

@ -12,7 +12,7 @@ def clone_llvm():
llvm_dir = Path("llvm") llvm_dir = Path("llvm")
if(llvm_dir.exists() == False): if(llvm_dir.exists() == False):
print("Clone llvm to core/deps/ ..") print("Clone llvm to core/deps/ ..")
for line in os.popen("git clone --branch release/10.x https://github.com/llvm/llvm-project.git llvm"): for line in os.popen("git clone --branch release/11.x https://github.com/llvm/llvm-project.git llvm"):
print(line) print(line)
else: else:
print("llvm source codes already existed") print("llvm source codes already existed")

View File

@ -8,7 +8,7 @@ DEPS_DIR=${PWD}/../core/deps
cd ${DEPS_DIR} cd ${DEPS_DIR}
if [ ! -d "llvm" ]; then if [ ! -d "llvm" ]; then
echo "Clone llvm to core/deps/ .." echo "Clone llvm to core/deps/ .."
git clone --depth 1 --branch release/10.x https://github.com/llvm/llvm-project.git llvm git clone --depth 1 --branch release/11.x https://github.com/llvm/llvm-project.git llvm
fi fi
cd llvm cd llvm