mirror of
https://github.com/wassname/ray.git
synced 2026-07-15 11:25:40 +08:00
* adding flatbuffers and migrating flatcc to flatbuffers for plasma * variable name changes in plasma_protocol and plasma flatbuffers schema * quick fix * cleanups and remove flatcc * more cleanup * add doc * linting * fix linting * fix mac os x build * linting * cleanup * c++ fix for plasma flatbuffers * Remove flatcc from CMakeLists.txt. * linting; trigger travis
32 lines
730 B
Bash
Executable File
32 lines
730 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)
|
|
|
|
# Determine how many parallel jobs to use for make based on the number of cores
|
|
unamestr="$(uname)"
|
|
if [[ "$unamestr" == "Linux" ]]; then
|
|
PARALLEL=$(nproc)
|
|
elif [[ "$unamestr" == "Darwin" ]]; then
|
|
PARALLEL=$(sysctl -n hw.ncpu)
|
|
else
|
|
echo "Unrecognized platform."
|
|
exit 1
|
|
fi
|
|
|
|
pushd "$ROOT_DIR/src/common/thirdparty/"
|
|
bash build-redis.sh
|
|
popd
|
|
|
|
bash "$ROOT_DIR/src/numbuf/thirdparty/download_thirdparty.sh"
|
|
bash "$ROOT_DIR/src/numbuf/thirdparty/build_thirdparty.sh"
|
|
|
|
# Now build everything.
|
|
pushd "$ROOT_DIR/python/core"
|
|
cmake -DCMAKE_BUILD_TYPE=Release ../..
|
|
make clean
|
|
make
|
|
popd
|