Skip to content

Commit 28274be

Browse files
authored
Fix build polybench benchmark error with wasi-sdk-19.0 (#2187)
1 parent 7f5d9d4 commit 28274be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/benchmarks/polybench/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ do
3434
utilities/polybench.c ${file} \
3535
-Wl,--export=__heap_base -Wl,--export=__data_end \
3636
-Wl,--export=malloc -Wl,--export=free \
37-
-DPOLYBENCH_TIME -o ${OUT_DIR}/${file_name%.*}.wasm
37+
-DPOLYBENCH_TIME -o ${OUT_DIR}/${file_name%.*}.wasm \
38+
-D_WASI_EMULATED_PROCESS_CLOCKS
3839

3940
echo "Compile ${file_name%.*}.wasm into ${file_name%.*}.aot"
4041
${WAMRC_CMD} -o ${OUT_DIR}/${file_name%.*}.aot \

0 commit comments

Comments
 (0)