Skip to content

Commit 3883cef

Browse files
committed
gh-149353: Avoid stale JIT stamp triggering rebuilds
1 parent ef6f063 commit 3883cef

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Makefile.pre.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3226,7 +3226,9 @@ $(JIT_GENERATED_STAMP): $(JIT_DEPS)
32263226
@REGEN_JIT_COMMAND@
32273227
@touch $@
32283228

3229-
$(JIT_BUILD_TARGETS): $(JIT_GENERATED_STAMP)
3229+
# The stamp regenerates all JIT outputs as a group. Keep it order-only so its
3230+
# newer timestamp does not make each generated artifact look stale.
3231+
$(JIT_BUILD_TARGETS): | $(JIT_GENERATED_STAMP)
32303232
@if test ! -f "$@"; then \
32313233
rm -f $(JIT_GENERATED_STAMP); \
32323234
$(MAKE) $(JIT_GENERATED_STAMP); \
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Avoid unnecessary JIT-related rebuilds during ``make install`` after
2+
``--enable-optimizations`` builds.

0 commit comments

Comments
 (0)