From d1a109b920e73c86dbf9574aafeda6725e019404 Mon Sep 17 00:00:00 2001 From: Robert Izzard <r.izzard@surrey.ac.uk> Date: Sun, 10 Nov 2019 01:54:23 +0000 Subject: [PATCH] update meson --- meson.build | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index aa629dff4..483ed5aa0 100644 --- a/meson.build +++ b/meson.build @@ -5,6 +5,15 @@ # ############################################################ +# TODO: +# +# shared_library build +# 'accurate' and 'generic' 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 project( @@ -231,7 +240,12 @@ if run_command('sh','-c','meson/diff_starstruct.sh').returncode() == 0 cflags += '-D__DIFF_STARDATA__' endif - +######################## +# Unsupported features # +######################## +if compiler.get_id() != 'gcc' and compiler.get_id() != 'clang' + cflags += '-UBACKTRACE' +endif ############################################################ # make a list of include directories -- GitLab