21 lines
692 B
Bash
Executable File

#!/bin/sh
# ----------------------------------------------------------------------
# Compile ref C++ files, to check them for validity
# ----------------------------------------------------------------------
fprime_gcc=../../../../../scripts/fprime-gcc
export FPRIME_GCC_FLAGS="-I../../fprime"
warning_flags="-Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-return-type"
. ../generate_cpp.sh
for file in `find . -name '*.template.ref.cpp'`
do
echo "compiling $file"
base=`echo $file | sed 's;\.template.ref.cpp;;'`
cp $base.template.ref.hpp $base.hpp
cp $base.template.ref.cpp $base.cpp
$fprime_gcc -I../../../.. -I../base -I.. -c $base.cpp $warning_flags
done