From 846fedfa47cf9e3f21ba1718ab806f04734cb803 Mon Sep 17 00:00:00 2001 From: Joel Linn Date: Sat, 16 Jul 2022 11:09:16 +0200 Subject: [PATCH] [xenia-build] Report premake errors via exit code --- xenia-build | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xenia-build b/xenia-build index 543114686..a2695b871 100755 --- a/xenia-build +++ b/xenia-build @@ -673,11 +673,11 @@ class SetupCommand(Command): print('') print('- running premake...') - if run_platform_premake(target_os_override=args['target_os']) == 0: - print('') - print('Success!') + ret = run_platform_premake(target_os_override=args['target_os']) + print('') + 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):