intc/build_tests.sh

14 lines
455 B
Bash
Raw Normal View History

2021-09-12 08:49:49 +00:00
#!/bin/bash
script_dir="$(cd "$(dirname "$BASH_SOURCE")" && pwd)"
mkdir --parents build
# GCC build
echo "[SCRIPT] Building tests via gcc to build/intc_tests_cpp_gcc"
pushd build
g++ -O2 -D INTC_TESTS_WITH_MAIN -I ${script_dir} ${script_dir}/intc_tests.c -o intc_tests_cpp_gcc
echo "[SCRIPT] Building tests via gcc to build/intc_tests_c_gcc"
gcc -std=c99 -O2 -D INTC_TESTS_WITH_MAIN -I ${script_dir} ${script_dir}/intc_tests.c -o intc_tests_c_gcc
2021-09-12 08:49:49 +00:00
popd