blob: a5b2881b31d4db7fd8bd912d5702f6da6751637b [file]
#!/bin/bash
set -e
# Any subsequent(*) commands which fail will cause the shell script to exit immediately
#########################################################################
# Build flatbuffers
#########################################################################
echo "Building Flatbuffers"
g++ --version
echo $?
mkdir -p ../flatbuffers
cd ../flatbuffers
cp -Rf ../third_party/flatbuffers/* .
export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/lib64/:$LD_LIBRARY_PATH
export PATH=/usr/local/bin/:$PATH
cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="-w -Wimplicit-fallthrough=0" # &> flatbuffers_configure.log
make -j 4 #&> flatbuffers_compile.log
./flattests #&> flatbuffers_test.log
echo "Done Building Flatbuffers"