[xenia-build] Report premake errors via exit code

This commit is contained in:
Joel Linn 2022-07-16 11:09:16 +02:00 committed by Rick Gibbed
parent 92db8f65b7
commit 846fedfa47
1 changed files with 8 additions and 8 deletions

View File

@ -673,11 +673,11 @@ class SetupCommand(Command):
print('')
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('Success!')
print('Success!' if ret == 0 else 'Error!')
return 0
return ret
class PullCommand(Command):
@ -755,11 +755,11 @@ class PremakeCommand(Command):
# Update premake. If no binary found, it will be built from source.
print('Running premake...')
print('')
if run_platform_premake(target_os_override=args['target_os'],
cc=args['cc'], devenv=args['devenv']) == 0:
print('Success!')
ret = run_platform_premake(target_os_override=args['target_os'],
cc=args['cc'], devenv=args['devenv'])
print('Success!' if ret == 0 else 'Error!')
return 0
return ret
class BaseBuildCommand(Command):