#!/bin/sh skip=0 for arg; do shift [ "$skip" = "1" ] && skip=0 && continue [ "$arg" = "-arch" ] && skip=1 && continue set -- "$@" "$arg" done emcc $@