#!/usr/bin/env bash set -euo pipefail if [[ "${1:-}" == "-r" && "${2:-}" == "-o" && -n "${3:-}" ]]; then output="$3" shift 3 exec emar rcs "${output}" "$@" fi exec emcc "$@"