Skip to content

Commit

Permalink
build: Early exit at getting any building errors
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m3vilurr committed Jun 6, 2021
1 parent b5ea687 commit 71cfd0e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 71cfd0e

Please sign in to comment.