gcc: Explicitly set gcc to compile in c99

This commit is contained in:
doyle 2021-09-12 18:56:06 +10:00
parent e5e83fff5c
commit 199ef27fe3

View File

@ -6,10 +6,8 @@ mkdir --parents build
echo "[SCRIPT] Building tests via gcc to build/intc_tests_cpp_gcc" echo "[SCRIPT] Building tests via gcc to build/intc_tests_cpp_gcc"
pushd build pushd build
g++ -O2 -D INTC_TESTS_WITH_MAIN -I ${script_dir} ${script_dir}/intc_tests.c -o intc_tests_cpp_gcc g++ -O2 -D INTC_TESTS_WITH_MAIN -I ${script_dir} ${script_dir}/intc_tests.c -o intc_tests_cpp_gcc
popd
echo "[SCRIPT] Building tests via gcc to build/intc_tests_c_gcc" echo "[SCRIPT] Building tests via gcc to build/intc_tests_c_gcc"
pushd build gcc -std=c99 -O2 -D INTC_TESTS_WITH_MAIN -I ${script_dir} ${script_dir}/intc_tests.c -o intc_tests_c_gcc
gcc -O2 -D INTC_TESTS_WITH_MAIN -I ${script_dir} ${script_dir}/intc_tests.c -o intc_tests_c_gcc
popd popd