12345678910111213
  1. #!/bin/sh
  2. skip=0
  3. for arg; do
  4. shift
  5. [ "$skip" = "1" ] && skip=0 && continue
  6. [ "$arg" = "-arch" ] && skip=1 && continue
  7. set -- "$@" "$arg"
  8. done
  9. emcc $@