From fdf921c0adff5317e426e798f8a716ca97046383 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Fri, 12 Jan 2024 16:15:10 +0100 Subject: Refactor; defer with fblocks --- build_and_test.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build_and_test.sh') diff --git a/build_and_test.sh b/build_and_test.sh index f677961..b3a3f2d 100644 --- a/build_and_test.sh +++ b/build_and_test.sh @@ -132,10 +132,17 @@ else fi fi +if [ "$COMPILE" = "clang" ] || [ "$OS" = "macOS" ]; then + FLAGS="-fblocks ${FLAGS}" +fi + if [ ! -d "$FOLDER" ]; then mkdir "$FOLDER" fi +echo "" +echo "Compiler options: ${FLAGS}" +echo "Link options: ${LINK_FLAGS}" echo "" # -- cgit v1.2.3