hex

hex.git
git clone git://git.lenczewski.org/hex.git
Log | Files | Refs

commit ec85967e9231e58673d6a122243eda65ef49719a
parent a593bd19866624eb2888e175658c7ed1bfcd492a
Author: MikoĊ‚aj Lenczewski <mblenczewski@gmail.com>
Date:   Thu,  2 Jan 2025 13:49:27 +0000

Allow building on Ubuntu 24.04

Diffstat:
Magents/example_c_agent/agent.c | 1+
Magents/example_c_agent/build.sh | 2+-
Magents/example_cpp_agent/build.sh | 2+-
Magents/hexes/build.sh | 4++--
Mbuild.sh | 4+---
5 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/agents/example_c_agent/agent.c b/agents/example_c_agent/agent.c @@ -8,6 +8,7 @@ #include <assert.h> #include <errno.h> +#include <inttypes.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> diff --git a/agents/example_c_agent/build.sh b/agents/example_c_agent/build.sh @@ -2,7 +2,7 @@ CC="${CC:-cc}" -WARNINGS="-Wall -Wextra -Wpedantic -Werror" +WARNINGS="-Wall -Wextra -Wpedantic ${WERROR:+-Werror}" CFLAGS="-std=c11 -Og -g" CPPFLAGS="-UNDEBUG -Iinclude -I../../proto" diff --git a/agents/example_cpp_agent/build.sh b/agents/example_cpp_agent/build.sh @@ -2,7 +2,7 @@ CXX="${CXX:-c++}" -WARNINGS="-Wall -Wextra -Wpedantic -Werror" +WARNINGS="-Wall -Wextra -Wpedantic ${WERROR:+-Werror}" CFLAGS="-std=c++14 -Og -g" CPPFLAGS="-UNDEBUG -Iinclude -I../../proto" diff --git a/agents/hexes/build.sh b/agents/hexes/build.sh @@ -2,11 +2,11 @@ CC="${CC:-cc}" -WARNINGS="-Wall -Wextra -Wpedantic -Werror" +WARNINGS="-Wall -Wextra -Wpedantic ${WERROR:+-Werror}" CFLAGS="-std=c11 -Og -g" CPPFLAGS="-UNDEBUG -Iinclude -I../../proto" -LDFLAGS="" +LDFLAGS="-lm" TARGET="hexes" diff --git a/build.sh b/build.sh @@ -7,7 +7,5 @@ cd server cd .. for dir in agents/*; do - cd $dir - ./build.sh - cd ../.. + ( cd $dir; ./build.sh || echo "Failed to build: $dir" ) done