From b99be73f2db5d3f81edc96a92ac4839e7f1cc3ab Mon Sep 17 00:00:00 2001 From: Justin Kerk Date: Sat, 29 Oct 2016 06:00:45 +0000 Subject: Experimental support for compiling to WebAssembly using Emscripten (not yet working) (nw) --- scripts/src/main.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/src') 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 -- cgit v1.2.3-70-g09d2