@@ -272,6 +272,7 @@ supported_cpu="no"
272272supported_os=" no"
273273bogus_os=" no"
274274malloc_trim=" "
275+ interpreter=" yes"
275276
276277# parse CC options first
277278for opt do
@@ -308,6 +309,10 @@ for opt do
308309 eval " cross_cc_${cc_arch} =\$ optarg"
309310 cross_cc_vars=" $cross_cc_vars cross_cc_${cc_arch} "
310311 ;;
312+ --enable-interpreter) interpreter=" yes"
313+ ;;
314+ --disable-interpreter) interpreter=" no"
315+ ;;
311316 esac
312317done
313318# OS specific
@@ -689,6 +694,10 @@ for opt do
689694 ;;
690695 --disable-debug-info)
691696 ;;
697+ --enable-interpreter)
698+ ;;
699+ --disable-interpreter)
700+ ;;
692701 --cross-cc-* )
693702 ;;
694703 --cpu=* )
@@ -922,6 +931,7 @@ disabled with --disable-FEATURE, default is enabled if available:
922931 jemalloc jemalloc support
923932 avx2 AVX2 optimization support
924933 avx512f AVX512F optimization support
934+ interpreter Interpreter mode
925935
926936NOTE: The object files are built at the place where configure is launched
927937EOF
21372147# #########################################
21382148# check for Apple Silicon JIT function
21392149
2140- if [ " $darwin " = " yes" ] ; then
2150+ if [ " $darwin " = " yes" ] && [ " $interpreter " = " no " ] ; then
21412151 cat > $TMPC << EOF
21422152#include <pthread.h>
21432153int main() { pthread_jit_write_protect_np(0); return 0;}
@@ -2313,6 +2323,7 @@ echo "tcmalloc support $tcmalloc"
23132323echo " jemalloc support $jemalloc "
23142324echo " avx2 optimization $avx2_opt "
23152325echo " avx512f optimization $avx512f_opt "
2326+ echo " interpreter $interpreter "
23162327
23172328if test " $supported_cpu " = " no" ; then
23182329 echo
@@ -2557,6 +2568,10 @@ if test "$have_sprr_mrs" = "yes" ; then
25572568 echo " HAVE_SPRR_MRS=y" >> $config_host_mak
25582569fi
25592570
2571+ if test " $interpreter " = " yes" ; then
2572+ echo " CONFIG_TCG_INTERPRETER=y" >> $config_host_mak
2573+ fi
2574+
25602575# Hold two types of flag:
25612576# CONFIG_THREAD_SETNAME_BYTHREAD - we've got a way of setting the name on
25622577# a thread we have a handle to
0 commit comments