# 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 {} ';'