From f5deabdcde20af19a4beb9fa46198c278f84873e Mon Sep 17 00:00:00 2001 From: Justin Kerk Date: Thu, 16 Apr 2020 14:37:55 +0000 Subject: Fix hang with Emscripten's "upstream" backend (nw) --- scripts/genie.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/genie.lua') diff --git a/scripts/genie.lua b/scripts/genie.lua index a0bb95f83a6..a8967409dc4 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -1156,6 +1156,8 @@ configuration { "asmjs" } } buildoptions_cpp { "-std=c++14", + "-s DISABLE_EXCEPTION_CATCHING=2", + "-s EXCEPTION_CATCHING_WHITELIST=\"['_ZN15running_machine17start_all_devicesEv','_ZN12cli_frontend7executeEiPPc','_ZN8chd_file11open_commonEb','_ZN8chd_file13read_metadataEjjRNSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE','_ZN8chd_file13read_metadataEjjRNSt3__26vectorIhNS0_9allocatorIhEEEE']\"", } linkoptions { "-Wl,--start-group", -- cgit v1.2.3-70-g09d2