Created attachment 94311 [details] Fix compilation on MinGW-w64 On MinGW-w64, ENABLE_EXECUTABLE_ALLOCATOR_FIXED is defined to 1 which causes JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp to fail to compile as it includes sys/mman.h which MinGW-w64 doesn't have. Previously, sys/mman.h was only included by JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp if the OS is Darwin. To fix this, JavaScriptCore/wtf/Platform.h is modified to only define ENABLE_EXECUTABLE_ALLOCATOR_FIXED to 1 if OS is Darwin.
Created attachment 94313 [details] Fix compilation on MinGW-w64 As sys/mman.h is available on Linux, i've updated the patch to check whether the compiler is not MinGW instead of whether it is Darwin.
Note that this probably also affects MSVC x64 by the looks of it. So any Win64 compiler really.
Disabling JIT as in bug 65313 means that ENABLE_ASSEMBLER will not be enabled. As a result, an executable allocator won't be enabled and compilation will succeed.