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

if ! command -v clang-cl >/dev/null 2>&1; then
  echo "clang-cl is required for Windows cross-builds on Linux."
  echo "Install LLVM/Clang toolchain first, for example on Ubuntu:"
  echo "  sudo apt update"
  echo "  sudo apt install -y clang lld llvm"
  exit 1
fi

exec cargo xwin "$@"
