From 28274bed3434aa9e4a59269f33c6bc1875304602 Mon Sep 17 00:00:00 2001 From: Wenyong Huang Date: Mon, 8 May 2023 19:34:26 +0800 Subject: [PATCH] Fix build polybench benchmark error with wasi-sdk-19.0 (#2187) --- tests/benchmarks/polybench/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/benchmarks/polybench/build.sh b/tests/benchmarks/polybench/build.sh index 43cd3321a..bc7bf4c10 100755 --- a/tests/benchmarks/polybench/build.sh +++ b/tests/benchmarks/polybench/build.sh @@ -34,7 +34,8 @@ do utilities/polybench.c ${file} \ -Wl,--export=__heap_base -Wl,--export=__data_end \ -Wl,--export=malloc -Wl,--export=free \ - -DPOLYBENCH_TIME -o ${OUT_DIR}/${file_name%.*}.wasm + -DPOLYBENCH_TIME -o ${OUT_DIR}/${file_name%.*}.wasm \ + -D_WASI_EMULATED_PROCESS_CLOCKS echo "Compile ${file_name%.*}.wasm into ${file_name%.*}.aot" ${WAMRC_CMD} -o ${OUT_DIR}/${file_name%.*}.aot \