mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-04-18 17:24:03 +03:00
Summary: - as title Reviewed By: lnicco Differential Revision: D33513410 fbshipit-source-id: 282b6f512cf83b9abb7990402661135b658f7bd1
35 lines
795 B
Bash
Executable File
35 lines
795 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
|
|
set -xeo pipefail
|
|
|
|
TOOLCHAIN_DIR=/opt/rh/devtoolset-8/root/usr/bin
|
|
if [[ -d "$TOOLCHAIN_DIR" ]]; then
|
|
PATH="$TOOLCHAIN_DIR:$PATH"
|
|
fi
|
|
|
|
PROJECT_DIR=$(dirname "$0")
|
|
GETDEPS_PATHS=(
|
|
"$PROJECT_DIR/build/fbcode_builder/getdeps.py"
|
|
"$PROJECT_DIR/../../opensource/fbcode_builder/getdeps.py"
|
|
)
|
|
|
|
ROOT_DIR=$(pwd)
|
|
STAGE=${ROOT_DIR}/_build/
|
|
mkdir -p "$STAGE"
|
|
|
|
for getdeps in "${GETDEPS_PATHS[@]}"; do
|
|
if [[ -x "$getdeps" ]]; then
|
|
"$getdeps" build mvfst --current-project mvfst "$@" --install-prefix=${STAGE}
|
|
exit 0
|
|
fi
|
|
done
|
|
|
|
echo "Could not find getdeps.py!?" >&2
|
|
exit 1
|