From 251384500e11f29508b1c5da7d9181e62176a60b Mon Sep 17 00:00:00 2001
From: Robert Izzard <r.izzard@surrey.ac.uk>
Date: Sun, 10 Nov 2019 01:58:38 +0000
Subject: [PATCH] more cleanup : works with clang!

---
 meson.build | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/meson.build b/meson.build
index 483ed5aa0..6ed1e42e2 100644
--- a/meson.build
+++ b/meson.build
@@ -3,16 +3,21 @@
 # 
 # (c) Robert Izzard 10/11/2019
 #
+# Known to work with binary_c 2.1.3 using gcc and clang.
+#
 ############################################################
 
+############################################################
 # TODO:
 #
+# fix precompiled headers (meson seems broken with these)
 # shared_library build
-# 'accurate' and 'generic' builds
+# 'accurate', 'generic', 'gprof'/'gcov' builds
 # test non-debug version (meson builds generic by default)
 # profile-guided optimization
-# build with clang
 # build with various old compilers
+#
+############################################################
 
 ############################################################
 # define the binary_c project
@@ -103,7 +108,7 @@ endforeach
 
 if compiler.get_id() == 'clang'
    # clang flags
-   cflags += []
+   cflags += [ '-fbracket-depth=512' ]
 else
    # default to gcc flags
    cflags += []
-- 
GitLab