update build script to run testing_main with stricter checks
This commit is contained in:
16
build.sh
16
build.sh
@@ -3,15 +3,7 @@ cd "$(dirname "$0")"
|
||||
if [ ! -d build ]; then
|
||||
mkdir build
|
||||
fi
|
||||
pushd build
|
||||
clang ../src/testing/testing_main.c -g
|
||||
popd
|
||||
|
||||
# if [ ! -f build/build_tool.exe ]; then
|
||||
# echo build_tool rebuild
|
||||
# cd build
|
||||
# clang ../src/meta/build_tool.c -ldl -lbacktrace -o build_tool.exe -g -fdiagnostics-absolute-paths -Wno-single-bit-bitfield-constant-conversion -Wno-unsequenced
|
||||
# cd ..
|
||||
# fi
|
||||
|
||||
# ./build/build_tool.exe clang ../build_file.c -o build_file.exe -ldl -lm -lbacktrace -g -Wall -Wextra -Wno-missing-braces -Wno-missing-field-initializers -Wno-single-bit-bitfield-constant-conversion -fdiagnostics-absolute-paths -Wno-writable-strings -Wno-unsequenced
|
||||
cd build
|
||||
clang ../src/testing/testing_main.c -o testing_main -I../src -g -Wall -Wextra -Werror -fdiagnostics-absolute-paths -Wno-single-bit-bitfield-constant-conversion -Wno-unsequenced -Wno-missing-field-initializers -Wno-missing-braces -ldl -lm -lbacktrace
|
||||
./testing_main
|
||||
cd ..
|
||||
|
||||
@@ -176,6 +176,5 @@ int main() {
|
||||
os_core_init();
|
||||
test_s8();
|
||||
os_test();
|
||||
debugf("Testing OK");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user