Gandiva uses CMake as a build configuration system. Currently, it supports out-of-source builds only.
Build Gandiva requires:
On macOS, you can use Homebrew:
brew install cmake llvm boost protobuf re2
To install arrow, follow the steps in the arrow Readme.
Debug build :
git clone https://github.com/apache/arrow.git cd cpp/src/gandiva mkdir debug cd debug cmake .. make ctest
Release build :
git clone https://github.com/apache/arrow.git cd cpp/src/gandiva mkdir release cd release cmake .. -DCMAKE_BUILD_TYPE=Release make ctest
We follow the google cpp code style. To validate compliance,
cd debug
make stylecheck
cd debug
make stylefix