mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
netlist: Fix build under Emscripten (#7031)
netlist: Fix crash under Emscripten by disabling aligned optimizations
This commit is contained in:
parent
96937e9007
commit
2dd0985999
@ -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",
|
||||
|
@ -25,6 +25,10 @@
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
#if defined(PAGESIZE)
|
||||
#undef PAGESIZE
|
||||
#endif
|
||||
|
||||
namespace plib {
|
||||
|
||||
//============================================================
|
||||
|
@ -35,6 +35,10 @@
|
||||
name(name &&) /*noexcept*/ = def; \
|
||||
name &operator=(name &&) /*noexcept*/ = def;
|
||||
|
||||
#if defined(EMSCRIPTEN)
|
||||
#undef EMSCRIPTEN
|
||||
#endif
|
||||
|
||||
namespace plib
|
||||
{
|
||||
//============================================================
|
||||
|
Loading…
Reference in New Issue
Block a user