https://github.com/python/cpython/commit/d5b00c74b30a159d8d8c03e152c6cf8e8b1431b2
commit: d5b00c74b30a159d8d8c03e152c6cf8e8b1431b2
branch: main
author: Miro HronĨok <[email protected]>
committer: savannahostrowski <[email protected]>
date: 2025-11-04T14:29:15-08:00
summary:

gh-140454: Normalize the JIT stencils filename on Linux to avoid mismatches 
between the Makefile and the generator (#140823)

files:
A Misc/NEWS.d/next/Build/2025-10-31-13-20-16.gh-issue-140454.gF6dCe.rst
M configure
M configure.ac

diff --git 
a/Misc/NEWS.d/next/Build/2025-10-31-13-20-16.gh-issue-140454.gF6dCe.rst 
b/Misc/NEWS.d/next/Build/2025-10-31-13-20-16.gh-issue-140454.gF6dCe.rst
new file mode 100644
index 00000000000000..4bb132ce01e170
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2025-10-31-13-20-16.gh-issue-140454.gF6dCe.rst
@@ -0,0 +1,3 @@
+When building the JIT, match the jit_stencils filename expectations in
+Makefile with the generator script. This avoid needless JIT recompilation
+during ``make install``.
diff --git a/configure b/configure
index 60521492755820..8463b5b5e4a9d0 100755
--- a/configure
+++ b/configure
@@ -34327,10 +34327,10 @@ else case e in #(
       JIT_STENCILS_H="jit_stencils-x86_64-pc-windows-msvc.h"
       ;;
     aarch64-*-linux-gnu)
-      JIT_STENCILS_H="jit_stencils-$host.h"
+      JIT_STENCILS_H="jit_stencils-aarch64-unknown-linux-gnu.h"
       ;;
     x86_64-*-linux-gnu)
-      JIT_STENCILS_H="jit_stencils-$host.h"
+      JIT_STENCILS_H="jit_stencils-x86_64-unknown-linux-gnu.h"
       ;;
   esac ;;
 esac
diff --git a/configure.ac b/configure.ac
index 135492d82e08fd..df94ae25e63561 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8219,10 +8219,10 @@ AS_VAR_IF([enable_experimental_jit], [no],
       JIT_STENCILS_H="jit_stencils-x86_64-pc-windows-msvc.h"
       ;;
     aarch64-*-linux-gnu)
-      JIT_STENCILS_H="jit_stencils-$host.h"
+      JIT_STENCILS_H="jit_stencils-aarch64-unknown-linux-gnu.h"
       ;;
     x86_64-*-linux-gnu)
-      JIT_STENCILS_H="jit_stencils-$host.h"
+      JIT_STENCILS_H="jit_stencils-x86_64-unknown-linux-gnu.h"
       ;;
   esac])
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to