Avoid linking capstone by default

Workaround for https://github.com/ruby/setup-ruby/pull/501#issuecomment-1520722486
This commit is contained in:
Takashi Kokubun 2023-04-24 12:54:32 -07:00
parent f492e3b4e5
commit 0bf10dfd25

View File

@ -3891,11 +3891,11 @@ AC_ARG_ENABLE(rjit,
AS_CASE(["$RJIT_SUPPORT"],
[yes|dev], [
# Link libcapstone for --rjit-dump-disasm
AC_CHECK_LIB([capstone], [cs_disasm])
AS_CASE(["$RJIT_SUPPORT"],
[dev], [
# Link libcapstone for --rjit-dump-disasm
AC_CHECK_LIB([capstone], [cs_disasm])
# Enable extra stats (vm_insns_count, ratio_in_rjit)
AC_DEFINE(RJIT_STATS, 1)
])