Skip to content

Commit

Permalink
Disable ASYNCIFY_WHITELIST when building on windows for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel committed Aug 11, 2019
1 parent 9ad9694 commit 6e54e47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion neo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ if (EMSCRIPTEN)
set(ldflags "${ldflags} -s ASYNCIFY=1")
set(ldflags "${ldflags} -s MINIFY_HTML=0")
file(READ ../neo/sys/wasm/asyncify.json ASYNCIFY_WHITELIST)
set(ldflags "${ldflags} -s 'ASYNCIFY_WHITELIST=${ASYNCIFY_WHITELIST}'")
if (CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
message("WARNING: can't use ASYNCIFY_WHITELIST while building on windows")
else()
set(ldflags "${ldflags} -s 'ASYNCIFY_WHITELIST=${ASYNCIFY_WHITELIST}'")
endif()
set(ldflags "${ldflags} -s EXIT_RUNTIME=0") # Don't exit the runtime
set(ldflags "${ldflags} -s ASSERTIONS=0") # Disabling assertion slightly reduce binary size
set(ldflags "${ldflags} -s MALLOC=emmalloc") # D3 mostly uses its own memory allocator. Let's use emmalloc as the default allocator instead of dmalloc as it is smaller.
Expand Down

0 comments on commit 6e54e47

Please sign in to comment.