netlist: Fix build under Emscripten (#7031)

netlist: Fix crash under Emscripten by disabling aligned optimizations
This commit is contained in:
Justin Kerk 2020-08-05 05:56:30 +00:00
parent 96937e9007
commit 2dd0985999
3 changed files with 13 additions and 0 deletions

View File

@ -31,6 +31,11 @@ project "netlist"
"NL_USE_ACADEMIC_SOLVERS=0",
}
configuration { "asmjs" }
defines {
"PUSE_ALIGNED_OPTIMIZATIONS=0",
}
includedirs {
MAME_DIR .. "src/lib",
MAME_DIR .. "src/lib/netlist",

View File

@ -25,6 +25,10 @@
#include <malloc.h>
#endif
#if defined(PAGESIZE)
#undef PAGESIZE
#endif
namespace plib {
//============================================================

View File

@ -35,6 +35,10 @@
name(name &&) /*noexcept*/ = def; \
name &operator=(name &&) /*noexcept*/ = def;
#if defined(EMSCRIPTEN)
#undef EMSCRIPTEN
#endif
namespace plib
{
//============================================================