mirror of
https://github.com/python/cpython.git
synced 2026-05-06 04:37:33 -04:00
gh-149353: Preserve JIT shim object during PGO clean (#149387)
This commit is contained in:
+3
-1
@@ -3330,7 +3330,9 @@ docclean:
|
|||||||
# data. The PGO data is only valid if source code remains unchanged.
|
# data. The PGO data is only valid if source code remains unchanged.
|
||||||
.PHONY: clean-retain-profile
|
.PHONY: clean-retain-profile
|
||||||
clean-retain-profile: pycremoval
|
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 '*.s[ol]' -exec rm -f {} ';'
|
||||||
find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
|
find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
|
||||||
find . -name '*.lto' -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.
|
||||||
Reference in New Issue
Block a user