summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Justin Kerk <dopefishjustin@gmail.com>2016-05-29 08:27:55 +0000
committer Justin Kerk <dopefishjustin@gmail.com>2016-05-29 08:27:55 +0000
commit141e1c77700dcc49d686e4768c46493d7efec2c3 (patch)
tree56f94f1de5379bb7de9e9a08479d4447154ae104
parentbded10179b142ab7e534a70ee0a163dc4e0e02aa (diff)
Emscripten tweaks (nw)
-rw-r--r--scripts/src/main.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/src/main.lua b/scripts/src/main.lua
index 31b9090d6b1..50469f0e384 100644
--- a/scripts/src/main.lua
+++ b/scripts/src/main.lua
@@ -115,7 +115,7 @@ end
targetextension ".bc"
if os.getenv("EMSCRIPTEN") then
local emccopts = ""
- .. " -O3"
+ .. " -O" .. _OPTIONS["OPTIMIZE"]
.. " -s USE_SDL=2"
.. " -s USE_SDL_TTF=2"
.. " --memory-init-file 0"
@@ -132,7 +132,9 @@ end
.. " --embed-file " .. _MAKE.esc(MAME_DIR) .. "artwork/slot-mask.png@artwork/slot-mask.png"
if _OPTIONS["SYMBOLS"]~=nil and _OPTIONS["SYMBOLS"]~="0" then
- emccopts = emccopts .. " -g" .. _OPTIONS["SYMLEVEL"]
+ emccopts = emccopts
+ .. " -g" .. _OPTIONS["SYMLEVEL"]
+ .. " -s DEMANGLE_SUPPORT=1"
end
if _OPTIONS["ARCHOPTS"] then