Compile on Linux again, fix comment warning, implement output capture on exec on posix

This commit is contained in:
2024-03-25 16:11:57 +11:00
parent b1eab3abdf
commit 3bca236a74
32 changed files with 534 additions and 230 deletions
+13 -1
View File
@@ -1,8 +1,20 @@
#!/bin/bash
set -ex
code_dir=${PWD}
mkdir -p Build
pushd Build
g++ ${code_dir}/dqn_unit_tests.cpp -D DQN_TEST_WITH_MAIN -std=c++17 -o dqn_unit_tests
g++ \
-Wall \
-Werror \
-fsanitize=address \
-std=c++17 \
-D DQN_IMPLEMENTATION \
-D DQN_UNIT_TESTS_WITH_MAIN \
-D DQN_UNIT_TESTS_WITH_KECCAK \
-x c++ ${code_dir}/dqn.h \
-g \
-o dqn_unit_tests
popd