#!/usr/bin/env bash
set -eu

if ! command -v clang >/dev/null 2>&1; then
  echo "clang is required for Windows cross-builds on Linux."
  echo "Install it with:"
  echo "  sudo apt update"
  echo "  sudo apt install -y clang"
  exit 1
fi

exec clang --driver-mode=cl "$@"
