#!/bin/sh
#
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

DIR=`dirname $0`

case $(uname -sm) in
    Darwin\ x86_64) exec $DIR/mac/amd64/ninja "$@" ;;
    Darwin\ *) "Unsupported mac arch `uname -m`" ;;
    Linux\ x86_64) exec $DIR/linux/amd64/ninja "$@" ;;
    Linux\ *) "Unsupported linux arch `uname -m`" ;;
    *) echo >&2 "Unsupported OS `uname -s`" ;;
esac
