Skip to content

Commit 45fcf30

Browse files
committed
Make it an error to create a layout without vcruntime DLL
1 parent cb437c5 commit 45fcf30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PC/layout/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,12 @@ def in_build(f, dest="", new_name=None):
173173
if ns.include_stable:
174174
yield from in_build(PYTHON_STABLE_DLL_NAME)
175175

176+
found_any = False
176177
for dest, src in rglob(ns.build, "vcruntime*.dll"):
178+
found_any = True
177179
yield dest, src
180+
if not found_any:
181+
log_error("Failed to locate vcruntime DLL in the build.")
178182

179183
yield "LICENSE.txt", ns.build / "LICENSE.txt"
180184

0 commit comments

Comments
 (0)