Skip to content

Commit 3384d2d

Browse files
committed
[build-script] Make --show-sdks fail if calling xcodebuild failed
1 parent 308160a commit 3384d2d

File tree

1 file changed

+2
-4
lines changed
  • utils/swift_build_support/swift_build_support

1 file changed

+2
-4
lines changed

utils/swift_build_support/swift_build_support/debug.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ def print_xcodebuild_versions(file=sys.stdout):
2828
information for all available SDKs.
2929
"""
3030
version = shell.capture(
31-
['xcodebuild', '-version'],
32-
dry_run=False, echo=False, optional=True).rstrip()
31+
['xcodebuild', '-version'], dry_run=False, echo=False).rstrip()
3332
sdks = shell.capture(
34-
['xcodebuild', '-version', '-sdk'],
35-
dry_run=False, echo=False, optional=True).rstrip()
33+
['xcodebuild', '-version', '-sdk'], dry_run=False, echo=False).rstrip()
3634
fmt = """\
3735
{version}
3836

0 commit comments

Comments
 (0)