forked from microsoft/onnxruntime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
49a80df
commit 42c3d2e
Showing
101 changed files
with
37,356 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
#!/bin/bash | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
set -ex | ||
|
||
# Get directory this script is in | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
OS=$(uname -s) | ||
|
||
if [ "$OS" = "Darwin" ]; then | ||
DIR_OS="MacOS" | ||
DIR_OS="MacOS" | ||
else | ||
DIR_OS="Linux" | ||
DIR_OS="Linux" | ||
fi | ||
|
||
if [[ "$*" == *"--ios"* ]]; then | ||
DIR_OS="iOS" | ||
DIR_OS="iOS" | ||
elif [[ "$*" == *"--android"* ]]; then | ||
DIR_OS="Android" | ||
DIR_OS="Android" | ||
fi | ||
|
||
python3 $DIR/tools/ci_build/build.py --build_dir $DIR/build/$DIR_OS "$@" | ||
PYTHON="${PYTHON:-python3}" | ||
|
||
$PYTHON $DIR/tools/ci_build/build.py --build_dir $DIR/build/$DIR_OS "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.