gh-149353: Preserve JIT shim object during PGO clean (#149387)

This commit is contained in:
Diego Russo
2026-05-05 16:20:12 +01:00
committed by GitHub
parent bad9296fb0
commit 4fa5c04282
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -3330,7 +3330,9 @@ docclean:
# data. The PGO data is only valid if source code remains unchanged.
.PHONY: clean-retain-profile
clean-retain-profile: pycremoval
find . -name '*.[oa]' -exec rm -f {} ';'
# Keep the generated JIT shim objects with the rest of the JIT generated
# files: they are regenerated as a group and tracked by .jit-stamp.
find . -name '*.[oa]' ! -name 'jit_shim*.o' -exec rm -f {} ';'
find . -name '*.s[ol]' -exec rm -f {} ';'
find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
find . -name '*.lto' -exec rm -f {} ';'
@@ -0,0 +1,2 @@
Avoid unnecessary JIT-related rebuilds during ``make install`` after
``--enable-optimizations`` builds.