File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed
Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -837,7 +837,7 @@ check-app-store-compliance:
837837
838838# Profile generation build must start from a clean tree.
839839profile-clean-stamp:
840- $(MAKE) clean
840+ $(MAKE) clean-profile
841841 touch $@
842842
843843# Compile with profile generation enabled.
@@ -3257,13 +3257,21 @@ profile-removal:
32573257 rm -f profile-run-stamp
32583258 rm -f profile-bolt-stamp
32593259
3260- .PHONY: clean
3261- clean: clean-retain-profile clean-bolt
3260+ .PHONY: clean-profile
3261+ clean-profile : clean-retain-profile clean-bolt
32623262 @if test @DEF_MAKE_ALL_RULE@ = profile-opt -o @DEF_MAKE_ALL_RULE@ = bolt-opt; then \
32633263 rm -f profile-gen-stamp profile-clean-stamp; \
32643264 $(MAKE) profile-removal; \
32653265 fi
32663266
3267+ # gh-141808: The JIT stencils are deliberately kept in clean-profile
3268+ .PHONY: clean-jit-stencils
3269+ clean-jit-stencils:
3270+ -rm -f jit_stencils*.h
3271+
3272+ .PHONY: clean
3273+ clean: clean-profile clean-jit-stencils
3274+
32673275.PHONY: clobber
32683276clobber: clean
32693277 -rm -f $(BUILDPYTHON) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
@@ -3276,11 +3284,6 @@ clobber: clean
32763284 -rm -f python-config.py python-config
32773285 -rm -rf cross-build
32783286
3279- # gh-141808: The JIT stencils are deliberately kept in make clean(-retain-profile)
3280- .PHONY: clean-jit-stencils
3281- clean-jit-stencils:
3282- -rm -f jit_stencils*.h
3283-
32843287# Make things extra clean, before making a distribution:
32853288# remove all generated files, even Makefile[.pre]
32863289# Keep configure and Python-ast.[ch], it's possible they can't be generated
Original file line number Diff line number Diff line change 1- When running ``make clean `` or `` make clean -retain-profile ``, keep the
1+ When running ``make clean-retain-profile ``, keep the
22generated JIT stencils. That way, the stencils are not generated twice when
33Profile-guided optimization (PGO) is used. It also allows distributors to
44supply their own pre-built JIT stencils.
You can’t perform that action at this time.
0 commit comments