bpo-45886: Allow overriding freeze command for cross compiling (GH-29735)

This commit is contained in:
Christian Heimes 2021-11-24 09:07:15 +02:00 committed by GitHub
parent f9de97aae5
commit dd8ce9ea8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 43 deletions

View file

@ -598,10 +598,10 @@ def regen_makefile(modules):
pyfile = relpath_for_posix_display(src.pyfile, ROOT_DIR)
pyfiles.append(f'\t\t{pyfile} \\')
freeze = (f'Programs/_freeze_module {src.frozenid} '
freeze = (f'$(FREEZE_MODULE) {src.frozenid} '
f'$(srcdir)/{pyfile} {header}')
rules.extend([
f'{header}: Programs/_freeze_module {pyfile}',
f'{header}: $(FREEZE_MODULE) {pyfile}',
f'\t{freeze}',
'',
])