#!/bin/zsh set -euo pipefail repo_dir="${0:A:h:h:h:h}" check_dir="$(mktemp -d /private/tmp/vcc-transport-checks.XXXXXX)" trap 'rm -rf "$check_dir"' EXIT export DEVELOPER_DIR="${DEVELOPER_DIR:-/Applications/Xcode.app/Contents/Developer}" xcrun swiftc -swift-version 6 -strict-concurrency=complete \ -module-cache-path "$check_dir/module-cache" -D VCC_COMPANION_TESTING -parse-as-library \ "$repo_dir/platforms/macos/Companion/CompanionTransport.swift" \ "$repo_dir/tests/macos/companion/TransportChecks.swift" -o "$check_dir/checks" "$check_dir/checks"