File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -336,3 +336,17 @@ jobs:
336
336
- name : stats
337
337
run : |
338
338
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
165
165
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} >
166
166
)
167
167
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
+
168
174
169
175
# QuickJS bytecode compiler
170
176
#
You can’t perform that action at this time.
0 commit comments