Skip to content

Commit 7b945bd

Browse files
committed
Update Makefile
1 parent 9f690c4 commit 7b945bd

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/Makefile

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -221,23 +221,25 @@ endif
221221
ifeq ($(PLATFORM),PLATFORM_WEB)
222222
# -Os # size optimization
223223
# -O2 # optimization level 2, if used, also set --memory-init-file 0
224-
# -s USE_GLFW=3 # Use glfw3 library (context/input management)
225-
# -s ALLOW_MEMORY_GROWTH=1 # to allow memory resizing -> WARNING: Audio buffers could FAIL!
226-
# -s TOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB) (67108864 = 64MB)
227-
# -s USE_PTHREADS=1 # multithreading support
228-
# -s WASM=0 # disable Web Assembly, emitted by default
229-
# -s ASYNCIFY # lets synchronous C/C++ code interact with asynchronous JS
230-
# -s FORCE_FILESYSTEM=1 # force filesystem to load/save files data
231-
# -s ASSERTIONS=1 # enable runtime checks for common memory allocation errors (-O1 and above turn it off)
224+
# -sUSE_GLFW=3 # Use glfw3 library (context/input management)
225+
# -sALLOW_MEMORY_GROWTH=1 # to allow memory resizing -> WARNING: Audio buffers could FAIL!
226+
# -sTOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB) (67108864 = 64MB)
227+
# -sUSE_PTHREADS=1 # multithreading support
228+
# -sWASM=0 # disable Web Assembly, emitted by default
229+
# -sASYNCIFY # lets synchronous C/C++ code interact with asynchronous JS
230+
# -sFORCE_FILESYSTEM=1 # force filesystem to load/save files data
231+
# -sASSERTIONS=1 # enable runtime checks for common memory allocation errors (-O1 and above turn it off)
232+
# -sMINIFY_HTML=0 # minify generated html from shell.html
232233
# --profiling # include information for code profiling
233234
# --memory-init-file 0 # to avoid an external memory initialization code file (.mem)
234235
# --preload-file resources # specify a resources folder for data compilation
235236
# --source-map-base # allow debugging in browser with source map
236-
LDFLAGS += -s USE_GLFW=3 -s TOTAL_MEMORY=$(BUILD_WEB_HEAP_SIZE) -s STACK_SIZE=$(BUILD_WEB_STACK_SIZE) -s FORCE_FILESYSTEM=1
237+
# --shell-file shell.html # define a custom shell .html and output extension
238+
LDFLAGS += -sUSE_GLFW=3 -sTOTAL_MEMORY=$(BUILD_WEB_HEAP_SIZE) -sSTACK_SIZE=$(BUILD_WEB_STACK_SIZE) -sFORCE_FILESYSTEM=1 -sMINIFY_HTML=0
237239

238240
# Build using asyncify
239241
ifeq ($(BUILD_WEB_ASYNCIFY),TRUE)
240-
LDFLAGS += -s ASYNCIFY -s ASYNCIFY_STACK_SIZE=$(BUILD_WEB_ASYNCIFY_STACK_SIZE)
242+
LDFLAGS += -sASYNCIFY -sASYNCIFY_STACK_SIZE=$(BUILD_WEB_ASYNCIFY_STACK_SIZE)
241243
endif
242244

243245
# Add resources building if required
@@ -247,7 +249,7 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
247249

248250
# Add debug mode flags if required
249251
ifeq ($(BUILD_MODE),DEBUG)
250-
LDFLAGS += -s ASSERTIONS=1 --profiling
252+
LDFLAGS += -sASSERTIONS=1 --profiling
251253
endif
252254

253255
# Define a custom shell .html and output extension

0 commit comments

Comments
 (0)