Skip to content

Commit f5d34b7

Browse files
committedDec 10, 2015
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
1 parent 69d1ca6 commit f5d34b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lldb/packages/Python/lldbsuite/test/lldbtest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2073,7 +2073,7 @@ def buildDriver(self, sources, exe_name):
20732073
'FRAMEWORK_INCLUDES' : "-F%s" % lib_dir,
20742074
'LD_EXTRAS' : "%s -Wl,-rpath,%s" % (dsym, lib_dir),
20752075
}
2076-
elif sys.platform.startswith('freebsd') or sys.platform.startswith("linux") or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile':
2076+
elif sys.platform.rstrip('0123456789') in ('freebsd', 'linux', 'netbsd') or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile':
20772077
d = {'CXX_SOURCES' : sources,
20782078
'EXE' : exe_name,
20792079
'CFLAGS_EXTRAS' : "%s %s -I%s" % (stdflag, stdlibflag, os.path.join(os.environ["LLDB_SRC"], "include")),
@@ -2102,7 +2102,7 @@ def buildLibrary(self, sources, lib_name):
21022102
'FRAMEWORK_INCLUDES' : "-F%s" % lib_dir,
21032103
'LD_EXTRAS' : "%s -Wl,-rpath,%s -dynamiclib" % (dsym, lib_dir),
21042104
}
2105-
elif self.getPlatform() == 'freebsd' or self.getPlatform() == 'linux' or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile':
2105+
elif self.getPlatform() in ('freebsd', 'linux', 'netbsd') or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile':
21062106
d = {'DYLIB_CXX_SOURCES' : sources,
21072107
'DYLIB_NAME' : lib_name,
21082108
'CFLAGS_EXTRAS' : "%s -I%s -fPIC" % (stdflag, os.path.join(os.environ["LLDB_SRC"], "include")),

0 commit comments

Comments
 (0)
Please sign in to comment.