Join GitHub today
bpo-23404: make touch becomes make regen-all #1405
Don't rebuild generated files based on file modification time
Note: $(PYTHON_FOR_GEN) is no more used nor needed by "make" (default
I tested custom builds on buildbot and I confirm that the change fixes the bootstrap/make touch issues. Tests are running on the two following buildbots, whereas without my change tests fail on trying to rebuild Python (try to rebuild Include/opcode.h).
I ran the following tests, all my tests passed.
!Warning! The "git clean -fdx" command removes all untracked files!
Build: it works.
Rebuild: no error.
Rebuild in a different directory. rebuild-all doesn't create any new file in ~/build_cpython/ (except of pgen and .o files), only replace files in the source directory (as expected).
Build in a different directory: it works.