mirror of
https://github.com/vale981/ray
synced 2025-03-14 15:16:38 -04:00
28 lines
634 B
Bash
28 lines
634 B
Bash
![]() |
#!/bin/bash
|
||
|
|
||
|
set -x
|
||
|
set -e
|
||
|
|
||
|
TP_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
||
|
PREFIX=$TP_DIR/installed
|
||
|
|
||
|
# 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)
|
||
|
echo "Platform is macosx."
|
||
|
else
|
||
|
echo "Unrecognized platform."
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
echo "building arrow"
|
||
|
cd $TP_DIR/arrow/cpp
|
||
|
source setup_build_env.sh
|
||
|
mkdir -p $TP_DIR/arrow/cpp/build
|
||
|
cd $TP_DIR/arrow/cpp/build
|
||
|
cmake -DLIBARROW_LINKAGE=STATIC -DCMAKE_BUILD_TYPE=Release ..
|
||
|
make VERBOSE=1 -j$PARALLEL
|