small fixes
This commit is contained in:
8
nim.cfg
8
nim.cfg
@@ -3,7 +3,7 @@
|
||||
@end
|
||||
|
||||
@if emscripten or asmjs or wasm:
|
||||
o:"build/sdlife.wasm"
|
||||
o:"build/sdlife.js"
|
||||
outdir:build
|
||||
@if not wasm:
|
||||
d:asmjs
|
||||
@@ -15,7 +15,7 @@
|
||||
clang.options.linker = ""
|
||||
cpu = "i386"
|
||||
@if wasm:
|
||||
passC = "-s WASM=2 -Iemscripten"
|
||||
passC = "-s WASM=2 -Iemscripten -flto"
|
||||
passL = "-s WASM=2 -s ALLOW_MEMORY_GROWTH=1 -s USE_SDL=2 -s USE_SDL_GFX=2 -Lemscripten -flto"
|
||||
@elif asmjs:
|
||||
passC = "-s ASM_JS=1 -Iemscripten"
|
||||
@@ -27,9 +27,6 @@
|
||||
passL %= "-O3"
|
||||
@end
|
||||
|
||||
#Fix _setjmp/longjmp problem. https://irclogs.nim-lang.org/24-09-2017.html#12:19:50
|
||||
d:nimStdSetjmp # https://irclogs.nim-lang.org/24-09-2017.html#20:13:18
|
||||
|
||||
#SDL
|
||||
define:sdl_custom_log
|
||||
dynlibOverride:"SDL2"
|
||||
@@ -38,7 +35,6 @@
|
||||
dynlibOverride:"SDL2_mixer"
|
||||
dynlibOverride:"SDL2_ttf"
|
||||
dynlibOverride:"SDL2_net"
|
||||
#passL %= "-s USE_SDL=2 ../libSDL2_gfx.o ../libSDL2_image-png.o ../libSDL2_ttf.o --preload-file ../assets"
|
||||
@else
|
||||
o:"build/sdlife"
|
||||
@end
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import options
|
||||
import sdl2, sdl2/gfx
|
||||
import sdl2
|
||||
import grid
|
||||
import geo2d
|
||||
import mmath/smatrix
|
||||
|
Reference in New Issue
Block a user