summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2019-03-02 16:46:29 +0000
committerMichal Gorny <mgorny@gentoo.org>2019-03-02 16:46:29 +0000
commit8085c1b3c1c93b5027b8dd611733d1e1ab68c4ab (patch)
tree0549469e27365b6a02067d09602e58537a620692 /lldb/packages/Python/lldbsuite/test
parent1f65903dc1d9140a1efd256ebc41d30f955b971e (diff)
downloadbcm5719-llvm-8085c1b3c1c93b5027b8dd611733d1e1ab68c4ab.tar.gz
bcm5719-llvm-8085c1b3c1c93b5027b8dd611733d1e1ab68c4ab.zip
[lldb] [lldbtest] Fix getBuildFlags() not to use libstdc++ on NetBSD
Remove the code forcing -stdlib=libstdc++ on NetBSD in getBuildFlags() method. NetBSD uses libc++ everywhere else, and using libstdc++ here causes lang/cpp/dynamic-value to fail to build. Differential Revision: https://reviews.llvm.org/D58871 llvm-svn: 355273
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index f1d47e15400..96924524bb7 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1666,7 +1666,8 @@ class Base(unittest2.TestCase):
elif self.getPlatform() == "openbsd":
cflags += " -stdlib=libc++"
elif self.getPlatform() == "netbsd":
- cflags += " -stdlib=libstdc++"
+ # NetBSD defaults to libc++
+ pass
elif "clang" in self.getCompiler():
cflags += " -stdlib=libstdc++"
OpenPOWER on IntegriCloud