Skip to content

Commit f5f5274

Browse files
committed
gh-140454: Generate jit_stencils-*-pc-linux-gnu.h instead of ...unknown-linux-gnu.h (as expected by Makefile)
This avoids needless JIT recompilation during make install.
1 parent e733dc9 commit f5f5274

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
When building the JIT, match the jit_stencils filename expectations in
2+
Makefile with the generator script. This avoid needless JIT recompilation
3+
during ``make install``.

Tools/jit/_targets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def get_target(host: str) -> _COFF32 | _COFF64 | _ELF | _MachO:
575575
optimizer = _optimizers.OptimizerAArch64
576576
target = _COFF64(host, condition, args=args, optimizer=optimizer)
577577
elif re.fullmatch(r"aarch64-.*-linux-gnu", host):
578-
host = "aarch64-unknown-linux-gnu"
578+
host = "aarch64-pc-linux-gnu"
579579
condition = "defined(__aarch64__) && defined(__linux__)"
580580
# -mno-outline-atomics: Keep intrinsics from being emitted.
581581
args = ["-fpic", "-mno-outline-atomics"]
@@ -600,7 +600,7 @@ def get_target(host: str) -> _COFF32 | _COFF64 | _ELF | _MachO:
600600
optimizer = _optimizers.OptimizerX86
601601
target = _COFF64(host, condition, args=args, optimizer=optimizer)
602602
elif re.fullmatch(r"x86_64-.*-linux-gnu", host):
603-
host = "x86_64-unknown-linux-gnu"
603+
host = "x86_64-pc-linux-gnu"
604604
condition = "defined(__x86_64__) && defined(__linux__)"
605605
args = ["-fno-pic", "-mcmodel=medium", "-mlarge-data-threshold=0"]
606606
optimizer = _optimizers.OptimizerX86

0 commit comments

Comments
 (0)