build: Early exit at getting any building errors
@@ -12,18 +12,21 @@ def execute(cmd, force_print=False):
return r.close()
def vita_libs_gen(yml, out):
- execute('vita-libs-gen {} {}'.format(yml, out))
+ if execute('vita-libs-gen {} {}'.format(yml, out)):
+ raise SystemExit(10)
def make(target):
curr = os.getcwd()
os.chdir(target)
- execute('make -j')
+ if execute('make -j'):
+ raise SystemExit(11)
os.chdir(curr)
def make_install(target):
curr = os.getcwd()
os.chdir(target)
- execute('make install')
+ if execute('make install'):
+ raise SystemExit(12)
os.chdir(curr)
def definition_check():
