Skip to content

Commit f5c3838

Browse files
authored
gh-103963: fix 'make regen-opcode' in out-of-tree builds (#104177)
1 parent d47cddf commit f5c3838

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Makefile.pre.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,9 +1376,11 @@ regen-opcode:
13761376
$(PYTHON_FOR_REGEN) $(srcdir)/Tools/build/generate_opcode_h.py \
13771377
$(srcdir)/Lib/opcode.py \
13781378
$(srcdir)/Include/opcode.h.new \
1379-
$(srcdir)/Include/internal/pycore_opcode.h.new
1379+
$(srcdir)/Include/internal/pycore_opcode.h.new \
1380+
$(srcdir)/Include/internal/pycore_intrinsics.h.new
13801381
$(UPDATE_FILE) $(srcdir)/Include/opcode.h $(srcdir)/Include/opcode.h.new
13811382
$(UPDATE_FILE) $(srcdir)/Include/internal/pycore_opcode.h $(srcdir)/Include/internal/pycore_opcode.h.new
1383+
$(UPDATE_FILE) $(srcdir)/Include/internal/pycore_intrinsics.h $(srcdir)/Include/internal/pycore_intrinsics.h.new
13821384

13831385
.PHONY: regen-token
13841386
regen-token:

PCbuild/regen.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
Inputs="@(_OpcodeSources)" Outputs="@(_OpcodeOutputs)"
6060
DependsOnTargets="FindPythonForBuild">
6161
<Message Text="Regenerate @(_OpcodeOutputs->'%(Filename)%(Extension)',' ')" Importance="high" />
62-
<Exec Command="$(PythonForBuild) Tools\build\generate_opcode_h.py Lib\opcode.py Include\opcode.h Include\internal\pycore_opcode.h"
62+
<Exec Command="$(PythonForBuild) Tools\build\generate_opcode_h.py Lib\opcode.py Include\opcode.h Include\internal\pycore_opcode.h Include\internal\pycore_intrinsics.h"
6363
WorkingDirectory="$(PySourcePath)" />
6464
<Exec Command="$(PythonForBuild) Python\makeopcodetargets.py Python\opcode_targets.h"
6565
WorkingDirectory="$(PySourcePath)" />

Tools/build/generate_opcode_h.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,4 @@ def main(opcode_py, outfile='Include/opcode.h',
233233

234234

235235
if __name__ == '__main__':
236-
main(sys.argv[1], sys.argv[2], sys.argv[3])
236+
main(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4])

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy