Skip to content

Commit

Permalink
Define useMalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
oakes committed Feb 19, 2021
1 parent 0375316 commit 1d8266f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ when defined(emscripten):
--gc:arc # GC:arc is friendlier with crazy platforms.
--exceptions:goto # Goto exceptions are friendlier with crazy platforms.

--define:useMalloc

# Pass this to Emscripten linker to generate html file scaffold for us.
switch("passL", "-o examples/web/index.html -s USE_WEBGL2=1 --shell-file examples/web/shell_minimal.html")

0 comments on commit 1d8266f

Please sign in to comment.