[Lldb-commits] [lldb] r355273 - [lldb] [lldbtest] Fix getBuildFlags() not to use libstdc++ on NetBSD
Michal Gorny via lldb-commits
lldb-commits at lists.llvm.org
Sat Mar 2 08:46:29 PST 2019
Author: mgorny
Date: Sat Mar 2 08:46:29 2019
New Revision: 355273
URL: http://llvm.org/viewvc/llvm-project?rev=355273&view=rev
Log:
[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
Modified:
lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py
Modified: lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py?rev=355273&r1=355272&r2=355273&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py Sat Mar 2 08:46:29 2019
@@ -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++"
More information about the lldb-commits
mailing list