1set -e 2 3JOBS=${JOBS:-1} 4config=$1 5echo "" 6echo "Build 'flatc' compiler for '$config'" 7 8cmake . -DCMAKE_BUILD_TYPE=$config \ 9 -DFLATBUFFERS_BUILD_FLATC=1 -DFLATBUFFERS_STATIC_FLATC=1 \ 10 -DFLATBUFFERS_BUILD_TESTS=0 -DFLATBUFFERS_INSTALL=0 11cmake --build . --target flatc --clean-first -- -j$JOBS 12 13echo "Check generated code" 14scripts/check-generate-code.sh 15echo "Done" 16