diff options
author | 2016-10-29 06:00:45 +0000 | |
---|---|---|
committer | 2016-10-29 06:00:45 +0000 | |
commit | b99be73f2db5d3f81edc96a92ac4839e7f1cc3ab (patch) | |
tree | 1da4d36e785de35e44005147befa8995f184b644 /scripts/src/main.lua | |
parent | 592c51d19e7a5e2037fff7037d7a1fbe0b308e6c (diff) |
Experimental support for compiling to WebAssembly using Emscripten (not yet working) (nw)
Diffstat (limited to 'scripts/src/main.lua')
-rw-r--r-- | scripts/src/main.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/src/main.lua b/scripts/src/main.lua index eb7cac4c8d5..abd91200edd 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -137,6 +137,11 @@ end .. " -s DEMANGLE_SUPPORT=1" end + if _OPTIONS["WEBASSEMBLY"] then + emccopts = emccopts + .. " -s BINARYEN=1" + end + if _OPTIONS["ARCHOPTS"] then emccopts = emccopts .. " " .. _OPTIONS["ARCHOPTS"] end |