]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-140454: Normalize the JIT stencils filename on Linux to avoid mismatches between...
authorMiro Hrončok <miro@hroncok.cz>
Tue, 4 Nov 2025 22:29:15 +0000 (23:29 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Nov 2025 22:29:15 +0000 (14:29 -0800)
Misc/NEWS.d/next/Build/2025-10-31-13-20-16.gh-issue-140454.gF6dCe.rst [new file with mode: 0644]
configure
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 (file)
index 0000000..4bb132c
--- /dev/null
@@ -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``.
index 60521492755820189528b046fe6a4c39709b90d0..8463b5b5e4a9d00e6c3d818ad8ea064589fd6436 100755 (executable)
--- 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
index 135492d82e08fd6125335639e3ca3f83b39b987b..df94ae25e63561a234d409960f5b9d54865edd9b 100644 (file)
@@ -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])