Skip to content

Commit 82b4106

Browse files
committed
cmake min ver
1 parent 32433c6 commit 82b4106

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,21 @@ endif ()
265265
include(WasmBuildOptions)
266266

267267
add_executable(xjavascript src/main_emscripten_kernel.cpp )
268-
target_compile_options(xjavascript PRIVATE -fPIC)
268+
target_compile_options(xjavascript
269+
PRIVATE -fPIC
270+
PUBLIC "SHELL -sWASM_BIGINT"
271+
PUBLIC "SHELL -sALLOW_MEMORY_GROWTH=1"
272+
273+
)
269274
XEUS_JAVASCRIPT_set_kernel_options(xjavascript)
270275
xeus_wasm_compile_options(xjavascript)
271276
xeus_wasm_link_options(xjavascript "web,worker")
272277

273278
#
274279
target_link_options(xjavascript
280+
PUBLIC "SHELL -sWASM_BIGINT"
281+
PUBLIC "SHELL -sALLOW_MEMORY_GROWTH=1"
282+
275283
PUBLIC "SHELL: -sMAIN_MODULE=1"
276284
PUBLIC "SHELL: -s NO_EXIT_RUNTIME=1"
277285
PUBLIC "SHELL: -s FORCE_FILESYSTEM=1"

environment-wasm-host.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ channels:
44
- https://repo.mamba.pm/conda-forge
55
dependencies:
66
- nlohmann_json
7-
- xeus-lite
8-
- xeus
7+
- xeus-lite >= 4.0.0
8+
- xeus >= 2.4.0

0 commit comments

Comments
 (0)