@@ -2787,11 +2787,13 @@ AS_VAR_IF([jit_flags],
2787
2787
[ AS_VAR_APPEND ( [ CFLAGS_NODIST] , [ " $jit_flags"] )
2788
2788
AS_VAR_SET ( [ REGEN_JIT_COMMAND] ,
2789
2789
[ "\$(PYTHON_FOR_REGEN) \$(srcdir)/Tools/jit/build.py ${ARCH_TRIPLES:-$host} --output-dir . --pyconfig-dir . --cflags=\"$CFLAGS_JIT\""] )
2790
+ AS_VAR_SET ( [ JIT_STENCILS_H] , [ "jit_stencils.h"] )
2790
2791
AS_VAR_IF ( [ Py_DEBUG] ,
2791
2792
[ true] ,
2792
2793
[ AS_VAR_APPEND ( [ REGEN_JIT_COMMAND] , [ " --debug"] ) ] ,
2793
2794
[ ] ) ] )
2794
2795
AC_SUBST ( [ REGEN_JIT_COMMAND] )
2796
+ AC_SUBST ( [ JIT_STENCILS_H] )
2795
2797
AC_MSG_RESULT ( [ $tier2_flags $jit_flags] )
2796
2798
2797
2799
if test "$disable_gil" = "yes" -a "$enable_experimental_jit" != "no"; then
@@ -8171,6 +8173,34 @@ dnl Emscripten does not support shared libraries yet.
8171
8173
PY_STDLIB_MOD([ xxlimited] , [ test "$TEST_MODULES" = yes] , [ test "$ac_cv_func_dlopen" = yes] )
8172
8174
PY_STDLIB_MOD([ xxlimited_35] , [ test "$TEST_MODULES" = yes] , [ test "$ac_cv_func_dlopen" = yes] )
8173
8175
8176
+ # Determine JIT stencils header files based on target platform
8177
+ JIT_STENCILS_H=""
8178
+ case "$host" in
8179
+ aarch64-apple-darwin*)
8180
+ JIT_STENCILS_H="jit_stencils-aarch64-apple-darwin.h"
8181
+ ;;
8182
+ x86_64-apple-darwin*)
8183
+ JIT_STENCILS_H="jit_stencils-x86_64-apple-darwin.h"
8184
+ ;;
8185
+ aarch64-pc-windows-msvc)
8186
+ JIT_STENCILS_H="jit_stencils-aarch64-pc-windows-msvc.h"
8187
+ ;;
8188
+ i686-pc-windows-msvc)
8189
+ JIT_STENCILS_H="jit_stencils-i686-pc-windows-msvc.h"
8190
+ ;;
8191
+ x86_64-pc-windows-msvc)
8192
+ JIT_STENCILS_H="jit_stencils-x86_64-pc-windows-msvc.h"
8193
+ ;;
8194
+ aarch64-*-linux-gnu)
8195
+ JIT_STENCILS_H="jit_stencils-$host.h"
8196
+ ;;
8197
+ x86_64-*-linux-gnu)
8198
+ JIT_STENCILS_H="jit_stencils-$host.h"
8199
+ ;;
8200
+ esac
8201
+
8202
+ AC_SUBST ( [ JIT_STENCILS_H] )
8203
+
8174
8204
# substitute multiline block, must come after last PY_STDLIB_MOD()
8175
8205
AC_SUBST ( [ MODULE_BLOCK] )
8176
8206
0 commit comments