File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -336,3 +336,17 @@ jobs:
336336 - name : stats
337337 run : |
338338 make stats
339+
340+ emscripten :
341+ runs-on : ubuntu-latest
342+ steps :
343+ - uses : actions/checkout@v3
344+ - uses : mymindstorm/setup-emsdk@v13
345+ - name : check emsdk
346+ run : emcc -v
347+ - name : build
348+ run : |
349+ emcmake cmake -B build
350+ emmake make -C build qjs_wasm -j$(getconf _NPROCESSORS_ONLN)
351+ - name : result
352+ run : ls -lh build
Original file line number Diff line number Diff line change @@ -165,6 +165,12 @@ target_include_directories(qjs PUBLIC
165165 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} >
166166)
167167
168+ if (EMSCRIPTEN)
169+ add_executable (qjs_wasm ${qjs_sources} )
170+ target_compile_definitions (qjs_wasm PRIVATE ${qjs_defines} )
171+ target_link_libraries (qjs_wasm m)
172+ endif ()
173+
168174
169175# QuickJS bytecode compiler
170176#
You can’t perform that action at this time.
0 commit comments