From c79fe3be430b498306cace7207c9acc6423ce0c6 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 28 Dec 2023 23:50:30 -0600 Subject: [PATCH] [buildcore] Make CMake configure failure trigger failed return code --- deps/buildcore/scripts/setup-build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deps/buildcore/scripts/setup-build.py b/deps/buildcore/scripts/setup-build.py index ebbad37e..8a2c8aaf 100755 --- a/deps/buildcore/scripts/setup-build.py +++ b/deps/buildcore/scripts/setup-build.py @@ -99,7 +99,9 @@ def main() -> int: if platform.system() == 'Windows': cmake_cmd.append('-A x64') - subprocess.run(cmake_cmd) + cmake_err = subprocess.run(cmake_cmd).returncode + if cmake_err != 0: + return cmake_err util.mkdir_p('dist') if int(args.current_build) != 0: