[php-src] jit-arm64: Attempt to fix Windows build

From: Date: Wed, 28 Apr 2021 21:58:09 +0000
Subject: [php-src] jit-arm64: Attempt to fix Windows build
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115940@lists.php.net to get a copy of this message
Author: Dmitry Stogov (dstogov) Date: 2021-04-29T00:57:43+03:00 Commit: https://github.com/php/php-src/commit/3da4b3c6d5a254cf0aac578c6f206e1cd0a0e499 Raw diff: https://github.com/php/php-src/commit/3da4b3c6d5a254cf0aac578c6f206e1cd0a0e499.diff Attempt to fix Windows build Changed paths: M ext/opcache/jit/zend_jit.c M ext/opcache/jit/zend_jit_disasm.c M ext/opcache/jit/zend_jit_vm_helpers.c Diff: diff --git a/ext/opcache/jit/zend_jit.c b/ext/opcache/jit/zend_jit.c index c45991166844..c529cee33006 100644 --- a/ext/opcache/jit/zend_jit.c +++ b/ext/opcache/jit/zend_jit.c @@ -39,7 +39,7 @@ #include "Optimizer/zend_call_graph.h" #include "Optimizer/zend_dump.h" -#if defined(__x86_64__) || defined(i386) +#if defined(__x86_64__) || defined(i386) || defined(ZEND_WIN32) #include "jit/zend_jit_x86.h" #elif defined (__aarch64__) #include "jit/zend_jit_arm64.h" @@ -206,7 +206,7 @@ static bool zend_is_commutative(zend_uchar opcode) #define OP2_RANGE() OP_RANGE(ssa_op, op2) #define OP1_DATA_RANGE() OP_RANGE(ssa_op + 1, op1) -#if defined(__x86_64__) || defined(i386) +#if defined(__x86_64__) || defined(i386) || defined(ZEND_WIN32) #include "dynasm/dasm_x86.h" #elif defined(__aarch64__) #include "dynasm/dasm_arm64.h" @@ -224,7 +224,7 @@ static bool zend_is_commutative(zend_uchar opcode) # include "jit/zend_jit_oprofile.c" #endif -#if defined(__x86_64__) || defined(i386) +#if defined(__x86_64__) || defined(i386) || defined(ZEND_WIN32) #include "jit/zend_jit_vtune.c" #include "jit/zend_jit_x86.c" #elif defined(__aarch64__) diff --git a/ext/opcache/jit/zend_jit_disasm.c b/ext/opcache/jit/zend_jit_disasm.c index 9eb097120a74..3ac4ed73ec34 100644 --- a/ext/opcache/jit/zend_jit_disasm.c +++ b/ext/opcache/jit/zend_jit_disasm.c @@ -225,7 +225,7 @@ static uint64_t zend_jit_disasm_branch_target(csh cs, const cs_insn *insn) { unsigned int i; -#if defined(__x86_64__) || defined(i386) +#if defined(__x86_64__) || defined(i386) || defined(ZEND_WIN32) if (cs_insn_group(cs, insn, X86_GRP_JUMP)) { for (i = 0; i < insn->detail->x86.op_count; i++) { if (insn->detail->x86.operands[i].type == X86_OP_IMM) { @@ -319,7 +319,7 @@ static int zend_jit_disasm(const char *name, #endif #ifdef HAVE_CAPSTONE -# if defined(__x86_64__) || defined(_WIN64) +# if defined(__x86_64__) || defined(_WIN64) || defined(ZEND_WIN32) if (cs_open(CS_ARCH_X86, CS_MODE_64, &cs) != CS_ERR_OK) return 0; cs_option(cs, CS_OPT_DETAIL, CS_OPT_ON); diff --git a/ext/opcache/jit/zend_jit_vm_helpers.c b/ext/opcache/jit/zend_jit_vm_helpers.c index 2b8b5097da23..00db2d508c5d 100644 --- a/ext/opcache/jit/zend_jit_vm_helpers.c +++ b/ext/opcache/jit/zend_jit_vm_helpers.c @@ -28,7 +28,7 @@ #include "Optimizer/zend_func_info.h" #include "Optimizer/zend_call_graph.h" #include "zend_jit.h" -#if defined(__x86_64__) || defined(i386) +#if defined(__x86_64__) || defined(i386) || defined(ZEND_WIN32) #include "zend_jit_x86.h" #elif defined(__aarch64__) #include "zend_jit_arm64.h"

« previous php.cvs (#115940) next »