fix exec_env not checked issue, export __heap_base and __data_end in sample to decrease memory usage (#371)

This commit is contained in:
Xu Jun
2020-09-05 14:48:08 +08:00
committed by GitHub
parent c8df3f6eed
commit 2e0cef3ef1
4 changed files with 17 additions and 15 deletions

View File

@ -153,6 +153,7 @@ OUT_FILE=${i%.*}.wasm
-Wl,--export=on_request -Wl,--export=on_response \
-Wl,--export=on_sensor_event -Wl,--export=on_timer_callback \
-Wl,--export=on_connection_data \
-Wl,--export=__heap_base -Wl,--export=__data_end \
-o ${OUT_DIR}/wasm-apps/${OUT_FILE} ${APP_SRC}
if [ -f ${OUT_DIR}/wasm-apps/${OUT_FILE} ]; then
echo "build ${OUT_FILE} success"