Завершить разделение SDK и внешних проектов

This commit is contained in:
Александр Петров
2026-09-16 10:01:43 +03:00
parent 0e74aaa7ee
commit 2e7ffd64a4
1965 changed files with 373 additions and 201393 deletions
+5 -1
View File
@@ -84,8 +84,12 @@ def run(wrapper, args):
locks.mkdir(exist_ok=True)
with (locks / (final_work.name + '.lock')).open('a') as lock:
fcntl.flock(lock, fcntl.LOCK_EX)
with tempfile.TemporaryDirectory(prefix='.sdbg-build-', dir=output.parent) as temporary:
keep_stage = bool(os.environ.get('SDBG_KEEP_FAILED_STAGE'))
with tempfile.TemporaryDirectory(prefix='.sdbg-build-', dir=output.parent,
delete=not keep_stage) as temporary:
stage = Path(temporary)
if keep_stage:
print('sdbg: диагностическая stage ' + str(stage), file=sys.stderr)
new_exe = stage / output.name
command = list(args)
command[command.index('-o')+1] = str(new_exe)