Skip to content

Commit 40bf82d

Browse files
committed
webprompt: fix native test
1 parent 5354b39 commit 40bf82d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

2.7.10/webprompt.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ emcc -o $BUILD/index.html \
4545
-s EXPORTED_FUNCTIONS='[_main, _Py_Initialize, _PyRun_SimpleString, _pyruni]' \
4646
-s EXTRA_EXPORTED_RUNTIME_METHODS='[ccall, cwrap]'
4747

48-
# cython ../mock/emscripten.pyx -o t/mock.c
49-
# gcc -g -I build/hostpython/include/python2.7 -L build/hostpython/lib/ t/mock.c webprompt-main.c -lpython2.7 -ldl -lm -lutil -lz
48+
# emrun --serve_after_close t/index.html
49+
50+
# cython -2 ../mock/emscripten.pyx -o t/mock.c
51+
# cython -2 ../mock/emscripten_fetch.pyx -o t/mock2.c
52+
# gcc -g -I build/hostpython/include/python2.7 -L build/hostpython/lib/ t/mock.c t/mock2.c ../webprompt-main.c -lpython2.7 -ldl -lm -lutil -lz -lpthread
5053
# PYTHONHOME=build/hostpython/ ./a.out

0 commit comments

Comments
 (0)