meson.build: use -funwind-tables only with clang

This commit is contained in:
Max Kellermann 2018-10-31 19:30:01 +01:00
parent 657ef48518
commit ba25a5388e
1 changed files with 4 additions and 2 deletions

View File

@ -60,11 +60,13 @@ test_cxxflags = test_common_flags + [
# in C++17 because the exception specification is part of a function # in C++17 because the exception specification is part of a function
# type" # type"
'-Wno-noexcept-type', '-Wno-noexcept-type',
]
if compiler.get_id() == 'clang'
# Workaround for clang bug # Workaround for clang bug
# https://bugs.llvm.org/show_bug.cgi?id=32611 # https://bugs.llvm.org/show_bug.cgi?id=32611
'-funwind-tables', test_cxxflags += '-funwind-tables'
] endif
test_cflags = test_common_flags + [ test_cflags = test_common_flags + [
'-Wmissing-prototypes', '-Wmissing-prototypes',