Skip to content

Commit

Permalink
build-wamr.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed May 31, 2023
1 parent 086b75a commit 5eda7d9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions benchmark/build-wamr.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#! /bin/sh

set -e

build() {
NAME=$1
shift
BUILD=b.${NAME}
cmake -B ${BUILD} $@
cmake --build ${BUILD}
cp ${BUILD}/iwasm ~/bin/iwasm.${NAME}
}

COMMON="-DWAMR_BUILD_BULK_MEMORY=1"
# COMMON="${COMMON} -DWAMR_BUILD_SHARED_MEMORY=1"
build classic ${COMMON} -DWAMR_BUILD_FAST_INTERP=0 .
build fast ${COMMON} -DWAMR_BUILD_FAST_INTERP=1 .
build fast-jit ${COMMON} -DWAMR_BUILD_FAST_JIT=1 -DWAMR_BUILD_LAZY_JIT=1 .
build fast-jit-nolazy ${COMMON} -DWAMR_BUILD_FAST_JIT=1 -DWAMR_BUILD_LAZY_JIT=0 .

0 comments on commit 5eda7d9

Please sign in to comment.