Skip to content

Commit

Permalink
Export malloc
Browse files Browse the repository at this point in the history
  • Loading branch information
bwrsandman committed Aug 4, 2023
1 parent 06dc19d commit b160b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if (EMSCRIPTEN)
LINK_FLAGS_DEBUG "-g3 -gsource-map"
COMPILE_FLAGS "-s USE_SDL=2 -fexceptions"
LINK_FLAGS
"-s ALLOW_MEMORY_GROWTH=1 -s USE_SDL=2 -s FULL_ES3=1 -s GL_ASSERTIONS=1 -s USE_WEBGL2=1 -fexceptions --emrun"
"-s EXPORTED_FUNCTIONS=\"['_main', '_malloc']\" -s ALLOW_MEMORY_GROWTH=1 -s USE_SDL=2 -s FULL_ES3=1 -s GL_ASSERTIONS=1 -s USE_WEBGL2=1 -fexceptions --emrun"
SUFFIX ".html"
)
endif ()

0 comments on commit b160b30

Please sign in to comment.