blob: 7e129425b33e39fdba042257d273708ac006b7d8 [file]
#!/bin/bash
set -e
# Any subsequent(*) commands which fail will cause the shell script to exit immediately
#########################################################################
# Build flatbuffers
#########################################################################
echo "Building Flatbuffers"
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
which g++
echo $?
g++ --version
echo $?
export CXX=`which g++`
export CC=`which gcc`
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"