#!/usr/bin/env bash
set -e
PROGRAM=$(basename "$0")
SDKROOT="$(cd "$(dirname "$0")"/../..; pwd -P)"
[[ -z $V ]] || set -x
exec docker run \
  --workdir "$PWD" \
  --volume "$PWD:$PWD" \
  --volume "$SDKROOT:$SDKROOT" \
  --rm solanalabs/llvm \
  "$PROGRAM" "$@"
