cmake: Propagate error when running command
This commit is contained in:
parent
daeee32d9b
commit
f73a1dff0e
|
@ -40,7 +40,10 @@ for i in commands:
|
|||
if not i:
|
||||
continue
|
||||
|
||||
subprocess.run(i, cwd=args.directory)
|
||||
try:
|
||||
subprocess.run(i, cwd=args.directory, check=True)
|
||||
except subprocess.CalledProcessError:
|
||||
exit(1)
|
||||
|
||||
if dummy_target:
|
||||
with open(dummy_target, 'a'):
|
||||
|
|
Loading…
Reference in New Issue