Browse Source

Example: Emscripten: Fix for compilation (filesystem module is required) (#2734)

pull/2820/merge
Funto 5 years ago
committed by omar
parent
commit
75d540d336
  1. 3
      examples/example_emscripten/Makefile

3
examples/example_emscripten/Makefile

@ -24,7 +24,8 @@ UNAME_S := $(shell uname -s)
EMS = -s USE_SDL=2 -s WASM=1 EMS = -s USE_SDL=2 -s WASM=1
EMS += -s ALLOW_MEMORY_GROWTH=1 -s BINARYEN_TRAP_MODE=clamp EMS += -s ALLOW_MEMORY_GROWTH=1 -s BINARYEN_TRAP_MODE=clamp
EMS += -s DISABLE_EXCEPTION_CATCHING=1 -s NO_EXIT_RUNTIME=0 EMS += -s DISABLE_EXCEPTION_CATCHING=1 -s NO_EXIT_RUNTIME=0
EMS += -s ASSERTIONS=1 -s NO_FILESYSTEM=1 EMS += -s ASSERTIONS=1
#EMS += -s NO_FILESYSTEM=1 ## Getting "error: undefined symbol: $FS" if filesystem is removed
#EMS += -s SAFE_HEAP=1 ## Adds overhead #EMS += -s SAFE_HEAP=1 ## Adds overhead
CPPFLAGS = -I../ -I../../ CPPFLAGS = -I../ -I../../

Loading…
Cancel
Save