summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-07-16 14:37:58 +0000
committerPavel Labath <labath@google.com>2018-07-16 14:37:58 +0000
commit7cb4dfb083f86a271e823ffeed091d3285bee53e (patch)
treebc8dc63eca8e3fd6c1805f51b9d6760e434ef2ef /lldb/packages/Python/lldbsuite/test/functionalities/data-formatter
parent2f752baa2e76f979090a24f5f95728d184826207 (diff)
downloadbcm5719-llvm-7cb4dfb083f86a271e823ffeed091d3285bee53e.tar.gz
bcm5719-llvm-7cb4dfb083f86a271e823ffeed091d3285bee53e.zip
Fix TestDataFormatterUnordered for older libc++ versions
clang recently started diagnosing "exception specification in declaration does not match previous declaration" errors. Unfortunately old libc++ versions had a bug, where they violated this rule, which means that tests using this library version now fail due to build errors. Since it was easy to work around the bug by compiling this test with -fno-exceptions, I do that here. If supporting old libc++ versions becomes a burden, we'll have to revisit this. llvm-svn: 337173
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/data-formatter')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/Makefile b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/Makefile
index 1f609a41d90..24d7c220d07 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/Makefile
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/Makefile
@@ -2,6 +2,11 @@ LEVEL = ../../../../../make
CXX_SOURCES := main.cpp
+# Work around "exception specification in declaration does not match previous
+# declaration" errors present in older libc++ releases. This error was fixed in
+# the 3.8 release.
+CFLAGS_EXTRAS += -fno-exceptions
+
USE_LIBCPP := 1
include $(LEVEL)/Makefile.rules
CXXFLAGS += -O0
OpenPOWER on IntegriCloud