From ba25a5388eb11a0570cb6ee53fc31d69f1153379 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 31 Oct 2018 19:30:01 +0100 Subject: meson.build: use -funwind-tables only with clang --- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 8d85d1c31..0239f3316 100644 --- a/meson.build +++ b/meson.build @@ -60,11 +60,13 @@ test_cxxflags = test_common_flags + [ # in C++17 because the exception specification is part of a function # type" '-Wno-noexcept-type', +] +if compiler.get_id() == 'clang' # Workaround for clang bug # https://bugs.llvm.org/show_bug.cgi?id=32611 - '-funwind-tables', -] + test_cxxflags += '-funwind-tables' +endif test_cflags = test_common_flags + [ '-Wmissing-prototypes', -- cgit v1.2.3