Skip to content

Commit 3e25cec

Browse files
don't regenerate _bootstrap_python every time
1 parent 16d7d80 commit 3e25cec

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Makefile.pre.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ BOOTSTRAP_HEADERS = \
14621462

14631463
Programs/_bootstrap_python.o: Programs/_bootstrap_python.c $(BOOTSTRAP_HEADERS) $(PYTHON_HEADERS)
14641464

1465-
_bootstrap_python: $(LIBRARY_OBJS_OMIT_FROZEN) Programs/_bootstrap_python.o Modules/getpath.o Modules/Setup.local
1465+
_bootstrap_python$(EXE): $(LIBRARY_OBJS_OMIT_FROZEN) Programs/_bootstrap_python.o Modules/getpath.o Modules/Setup.local
14661466
$(LINKCC) $(PY_LDFLAGS_NOLTO) -o $@ $(LIBRARY_OBJS_OMIT_FROZEN) \
14671467
Programs/_bootstrap_python.o Modules/getpath.o $(LIBS) $(MODLIBS) $(SYSLIBS)
14681468

@@ -2980,10 +2980,10 @@ clean-retain-profile: pycremoval
29802980
find build -name '*.py' -exec rm -f {} ';' || true
29812981
find build -name '*.py[co]' -exec rm -f {} ';' || true
29822982
-rm -f pybuilddir.txt
2983-
-rm -f _bootstrap_python
2983+
-rm -f _bootstrap_python$(EXE)
29842984
-rm -f python.html python*.js python.data python*.symbols python*.map
29852985
-rm -f $(WASM_STDLIB)
2986-
-rm -f Programs/_testembed Programs/_freeze_module
2986+
-rm -f Programs/_testembed Programs/_freeze_module$(EXE)
29872987
-rm -rf Python/deepfreeze
29882988
-rm -f Python/frozen_modules/*.h
29892989
-rm -f Python/frozen_modules/MANIFEST

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ AC_ARG_WITH([build-python],
171171
[AC_MSG_ERROR([Cross compiling requires --with-build-python])]
172172
)
173173
PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
174-
PYTHON_FOR_FREEZE="./_bootstrap_python"
174+
PYTHON_FOR_FREEZE="./_bootstrap_python\$(EXE)"
175175
]
176176
)
177177
AC_SUBST([PYTHON_FOR_BUILD])
@@ -194,7 +194,7 @@ AS_VAR_IF([cross_compiling], [yes],
194194
FREEZE_MODULE_BOOTSTRAP='./Programs/_freeze_module$(EXE)'
195195
FREEZE_MODULE_BOOTSTRAP_DEPS="Programs/_freeze_module\$(EXE)"
196196
FREEZE_MODULE='$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py'
197-
FREEZE_MODULE_DEPS="_bootstrap_python \$(srcdir)/Programs/_freeze_module.py"
197+
FREEZE_MODULE_DEPS="_bootstrap_python\$(EXE) \$(srcdir)/Programs/_freeze_module.py"
198198
PYTHON_FOR_BUILD_DEPS='$(BUILDPYTHON)'
199199
]
200200
)

0 commit comments

Comments
 (0)