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: