Завершить разделение SDK и внешних проектов
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user