From fe3763bcb3ca2e92e9c4efc37196d13302d413ae Mon Sep 17 00:00:00 2001 From: Evan Wilde Date: Mon, 15 Dec 2025 14:22:11 -0800 Subject: [PATCH] build-script-helper: print-target-info error Capture output on failure when unable to run `-print-target-info` in the build-script helper. The old behavior only emitted the command line and the exit code, which doesn't provide enough information in logs to be actionable. --- Utilities/build-script-helper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Utilities/build-script-helper.py b/Utilities/build-script-helper.py index 1509f93bd..6d038cc32 100755 --- a/Utilities/build-script-helper.py +++ b/Utilities/build-script-helper.py @@ -580,6 +580,9 @@ def get_build_target(swiftc_path, args, cross_compile=False): if '-apple-macosx' in args.target_info["target"]["unversionedTriple"]: triple = args.target_info['target']['unversionedTriple'] return triple + except subprocess.CalledProcessError as e: + error(f"""Command {e.cmd} terminated with non-zero exit status {e.returncode} + Output: {e.output}""") except Exception as e: error(str(e))