Skip to content

Commit c254bff

Browse files
authored
Fix compile errors on workload bwa and benchmark jetstream (#3617)
Error was reported when building jetstream benchmark with emsdk: ``` clang: error: unsupported option '-msse2' for target 'wasm32-wasi' ``` Error was reported when building bwa workload: ``` fatal: reference is not a tree: 139f68fc4c3747813783a488aef2adc86626b01b ```
1 parent 73caf19 commit c254bff

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

samples/workload/bwa/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ ExternalProject_Add(libz_src
3535
################ bwa ################
3636
ExternalProject_Add(bwa
3737
GIT_REPOSITORY https://github.com/lh3/bwa.git
38-
GIT_TAG 139f68fc4c3747813783a488aef2adc86626b01b
38+
GIT_TAG v0.7.18
3939
GIT_PROGRESS ON
40-
GIT_SHALLOW ON
4140
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bwa
4241
DEPENDS libz_src
4342
UPDATE_COMMAND git clean -ffdx && git checkout -- *

samples/workload/bwa/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ Then compile wasm file to aot file and run:
4242
``` shell
4343
$ cd <wamr dir>/samples/workload/bwa/build
4444
$ <wamr dir>/wamr-compiler/build/wamrc -o bwa.aot bwa.wasm
45-
$ <wamr dir>/product-mini/platforms/linux/iwasm --dir=. bwa.aot index hs38DH.fa
45+
$ <wamr dir>/product-mini/platforms/linux/iwasm --dir=. bwa.aot index hs38DH-extra.fa
4646
```

tests/benchmarks/jetstream/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mkdir -p ${OUT_DIR}
1616

1717
if [[ $1 != "--no-simd" ]];then
1818
NATIVE_SIMD_FLAGS="-msse2 -msse3 -msse4"
19-
WASM_SIMD_FLAGS="-msimd128 -msse2 -msse3 -msse4"
19+
WASM_SIMD_FLAGS="-msimd128"
2020
else
2121
NATIVE_SIMD_FLAGS=""
2222
WASM_SIMD_FLAGS=""

0 commit comments

Comments
 (0)