mirror of
https://github.com/vale981/ray
synced 2025-03-06 18:41:40 -05:00
22 lines
741 B
Bash
Executable file
22 lines
741 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Cause the script to exit if a single command fails.
|
|
set -e
|
|
|
|
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
|
|
|
# Copy the libs to thirdparty/external_project_libs.
|
|
# -n means do not build again.
|
|
bash $ROOT_DIR/../../thirdparty/scripts/collect_dependent_libs.sh -n
|
|
|
|
# Import all the libs cached in local to environment variables.
|
|
source $ROOT_DIR/../../thirdparty/external_project_libs/resource.txt
|
|
|
|
# Clean the arrow building libs and use the cache libs.
|
|
pushd $ROOT_DIR/../../build/external/arrow/src/arrow_ep
|
|
echo "Clean Arrow building files."
|
|
rm -rf $ROOT_DIR/../../build/external/arrow/src/arrow_ep-build/
|
|
popd
|
|
|
|
# Rebuild ray with libs cache environment variables, which is fast.
|
|
bash $ROOT_DIR/install-ray.sh
|