[xenia-build] Report premake errors via exit code
This commit is contained in:
parent
92db8f65b7
commit
846fedfa47
14
xenia-build
14
xenia-build
|
@ -673,11 +673,11 @@ class SetupCommand(Command):
|
||||||
print('')
|
print('')
|
||||||
|
|
||||||
print('- running premake...')
|
print('- running premake...')
|
||||||
if run_platform_premake(target_os_override=args['target_os']) == 0:
|
ret = run_platform_premake(target_os_override=args['target_os'])
|
||||||
print('')
|
print('')
|
||||||
print('Success!')
|
print('Success!' if ret == 0 else 'Error!')
|
||||||
|
|
||||||
return 0
|
return ret
|
||||||
|
|
||||||
|
|
||||||
class PullCommand(Command):
|
class PullCommand(Command):
|
||||||
|
@ -755,11 +755,11 @@ class PremakeCommand(Command):
|
||||||
# Update premake. If no binary found, it will be built from source.
|
# Update premake. If no binary found, it will be built from source.
|
||||||
print('Running premake...')
|
print('Running premake...')
|
||||||
print('')
|
print('')
|
||||||
if run_platform_premake(target_os_override=args['target_os'],
|
ret = run_platform_premake(target_os_override=args['target_os'],
|
||||||
cc=args['cc'], devenv=args['devenv']) == 0:
|
cc=args['cc'], devenv=args['devenv'])
|
||||||
print('Success!')
|
print('Success!' if ret == 0 else 'Error!')
|
||||||
|
|
||||||
return 0
|
return ret
|
||||||
|
|
||||||
|
|
||||||
class BaseBuildCommand(Command):
|
class BaseBuildCommand(Command):
|
||||||
|
|
Loading…
Reference in New Issue