try; fix random and meta properly

This commit is contained in:
underscorediscovery
2021-04-03 22:09:19 -07:00
parent 94e835cdd6
commit 615a6aa208
5 changed files with 53 additions and 76 deletions

View File

@ -1,6 +1,6 @@
# Copied from projects/make and modified for emscripten
DEFINES += -D WREN_OPT_RANDOM -D WREN_OPT_META
DEFINES += -DWREN_OPT_RANDOM -DWREN_OPT_META
LDFLAGS += " -s WASM=1 -s FILESYSTEM=0"
ifndef config

View File

@ -1,6 +1,6 @@
# Copied from projects/make and modified for emscripten
DEFINES += -D WREN_OPT_RANDOM -D WREN_OPT_META
DEFINES += -DWREN_OPT_RANDOM -DWREN_OPT_META -DWREN_TRY
LDFLAGS += -s WASM=1 -s FILESYSTEM=0 -s EXIT_RUNTIME=0 -s ENVIRONMENT='web'
LDFLAGS += -s EXPORTED_FUNCTIONS='["_main", "_wren_compile"]'
LDFLAGS += -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]'