Skip to content

Commit 4fa5c04

Browse files
authored
gh-149353: Preserve JIT shim object during PGO clean (#149387)
1 parent bad9296 commit 4fa5c04

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
@@ -3330,7 +3330,9 @@ docclean:
33303330
# data. The PGO data is only valid if source code remains unchanged.
33313331
.PHONY: clean-retain-profile
33323332
clean-retain-profile: pycremoval
3333-
find . -name '*.[oa]' -exec rm -f {} ';'
3333+
# Keep the generated JIT shim objects with the rest of the JIT generated
3334+
# files: they are regenerated as a group and tracked by .jit-stamp.
3335+
find . -name '*.[oa]' ! -name 'jit_shim*.o' -exec rm -f {} ';'
33343336
find . -name '*.s[ol]' -exec rm -f {} ';'
33353337
find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
33363338
find . -name '*.lto' -exec rm -f {} ';'
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)