mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
87922411bf
* ext/opcache/config.m4: new --with-opcache-capstone flag. Until now, libcapstone has been detected "automagically" and used for JIT disassembly whenever it is available on the system used to compile PHP. This can have some unintended consequences, however: many users have capstone installed for some other purpose, and are surprised to find that PHP breaks when capstone is later uninstalled. To address this, we have introduced a new --with-opcache-capstone flag that is disabled by default, and that makes the user's preference explicit. It is ignored unless the JIT is enabled. * ext/opcache: drop support for the oprofile JIT profiler. Recently we have replaced the "automagic" detection of capstone at build time with a --with-opcache-capstone flag. The detection of oprofile causes similar problems and would likely have the same solution; however, it was suggested that we might remove oprofile altogether. So, this commit removes it: * Remove the detection bits from ext/opcache/config.m4. * Drop HAVE_OPROFILE ifdef blocks. * Delete ext/opcache/jit/zend_jit_oprofile.c. * Undefine the ZEND_JIT_DEBUG_OPROFILE constant.
21 lines
864 B
GLSL
21 lines
864 B
GLSL
|
|
$(builddir)/minilua: $(srcdir)/jit/dynasm/minilua.c
|
|
$(BUILD_CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@
|
|
|
|
$(builddir)/jit/zend_jit_$(DASM_ARCH).c: $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua
|
|
$(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_$(DASM_ARCH).dasc
|
|
|
|
$(builddir)/jit/zend_jit.lo: \
|
|
$(builddir)/jit/zend_jit_$(DASM_ARCH).c \
|
|
$(srcdir)/jit/zend_jit_helpers.c \
|
|
$(srcdir)/jit/zend_jit_disasm.c \
|
|
$(srcdir)/jit/zend_jit_gdb.c \
|
|
$(srcdir)/jit/zend_jit_perf_dump.c \
|
|
$(srcdir)/jit/zend_jit_vtune.c \
|
|
$(srcdir)/jit/zend_jit_trace.c \
|
|
$(srcdir)/jit/zend_elf.c
|
|
|
|
# For non-GNU make, jit/zend_jit.lo and ./jit/zend_jit.lo are considered distinct targets.
|
|
# Use this workaround to allow building from inside ext/opcache.
|
|
jit/zend_jit.lo: $(builddir)/jit/zend_jit.lo
|