From: Kamil Rytarowski Date: Thu, 10 Dec 2015 22:56:56 +0000 (+0000) Subject: Add NetBSD support in the buildDriver and buildLibrary routines X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5d34b7b9d8b6c357977357bfa5159269a248c8c;p=platform%2Fupstream%2Fllvm.git Add NetBSD support in the buildDriver and buildLibrary routines Summary: NetBSD is like FreeBSD and Linux in these routines. Reviewers: clay.chang, tfiala, emaste, joerg Subscribers: lldb-commits, emaste Differential Revision: http://reviews.llvm.org/D15374 llvm-svn: 255308 --- diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py index e1403c1..0de836d 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -2073,7 +2073,7 @@ class Base(unittest2.TestCase): 'FRAMEWORK_INCLUDES' : "-F%s" % lib_dir, 'LD_EXTRAS' : "%s -Wl,-rpath,%s" % (dsym, lib_dir), } - elif sys.platform.startswith('freebsd') or sys.platform.startswith("linux") or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile': + elif sys.platform.rstrip('0123456789') in ('freebsd', 'linux', 'netbsd') or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile': d = {'CXX_SOURCES' : sources, 'EXE' : exe_name, 'CFLAGS_EXTRAS' : "%s %s -I%s" % (stdflag, stdlibflag, os.path.join(os.environ["LLDB_SRC"], "include")), @@ -2102,7 +2102,7 @@ class Base(unittest2.TestCase): 'FRAMEWORK_INCLUDES' : "-F%s" % lib_dir, 'LD_EXTRAS' : "%s -Wl,-rpath,%s -dynamiclib" % (dsym, lib_dir), } - elif self.getPlatform() == 'freebsd' or self.getPlatform() == 'linux' or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile': + elif self.getPlatform() in ('freebsd', 'linux', 'netbsd') or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile': d = {'DYLIB_CXX_SOURCES' : sources, 'DYLIB_NAME' : lib_name, 'CFLAGS_EXTRAS' : "%s -I%s -fPIC" % (stdflag, os.path.join(os.environ["LLDB_SRC"], "include")),