Ticket #50169: moarvm-nojit-in-i386.diff
File moarvm-nojit-in-i386.diff, 1.9 KB (added by mojca (Mojca Miklavec), 9 years ago) |
---|
-
Portfile
5 5 6 6 name MoarVM 7 7 version 2015.12 8 revision 18 revision 2 9 9 categories lang devel 10 10 platforms darwin 11 11 license Artistic-2 MIT BSD ISC public-domain … … 24 24 25 25 depends_build port:perl5 26 26 27 # https://github.com/MoarVM/MoarVM/issues/324 28 patchfiles patch-src-jit-emit_x64.dasc.diff 29 27 30 configure.cmd ${prefix}/bin/perl Configure.pl 28 31 29 32 # Unsupported by Configure.pl 30 33 configure.universal_args-delete --disable-dependency-tracking 31 # JIT is not supported on anything but x86_6432 # (and universal builds would need a special treatment)33 # automatic disabling of JIT should be implemented/fixed upstream34 # https://github.com/MoarVM/MoarVM/issues/32435 if {[variant_isset universal] || ${configure.build_arch} ne "x86_64"} {36 configure.args-append --no-jit37 } -
files/patch-src-jit-emit_x64.dasc.diff
1 https://github.com/MoarVM/MoarVM/issues/324 2 https://github.com/MoarVM/MoarVM/commit/6ae4e7fdb82b147df79109f5567d77300c5a6e78 3 4 --- src/jit/emit_x64.dasc.orig 5 +++ src/jit/emit_x64.dasc 6 @@ -61,7 +61,15 @@ 7 8 9 const MVMint32 MVM_jit_support(void) { 10 +#ifdef __i386__ 11 + /* Usually, this file should only be compiled only on a amd64 12 + platform; but when compiling 'fat' or 'universal' binaries, we 13 + may compile it for other platform. In this case we use the 14 + runtime check to disable the JIT */ 15 + return 0; 16 +#else 17 return 1; 18 +#endif 19 } 20 21 const unsigned char * MVM_jit_actions(void) {