From c779bdc95323c4617b5a9505df7dcfd83e133518 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 1 Dec 2023 12:41:42 +0300 Subject: [PATCH] Fix Windoes build --- ext/opcache/jit/zend_jit_ir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/opcache/jit/zend_jit_ir.c b/ext/opcache/jit/zend_jit_ir.c index 5b841ad37e5..0c209dcfc86 100644 --- a/ext/opcache/jit/zend_jit_ir.c +++ b/ext/opcache/jit/zend_jit_ir.c @@ -3156,9 +3156,11 @@ static void zend_jit_setup(void) if (zend_cpu_supports_avx()) { allowed_opt_flags |= ZEND_JIT_CPU_AVX; } +# if PHP_HAVE_BUILTIN_CPU_SUPPORTS && defined(__GNUC__) && (ZEND_GCC_VERSION >= 11000) if (zend_cpu_supports_cldemote()) { default_mflags |= IR_X86_CLDEMOTE; } +# endif #endif #ifdef ZTS #if defined(IR_TARGET_AARCH64)