forked from OSchip/llvm-project
tests: Build test code on FreeBSD the same way as on Linux
llvm-svn: 187155
This commit is contained in:
parent
bff44dddff
commit
372c24d9f2
|
@ -44,7 +44,7 @@ class SBDirCheckerCase(TestBase):
|
|||
# For different platforms, the include statement can vary.
|
||||
if sys.platform.startswith("darwin"):
|
||||
include_stmt = "'#include <%s>' % os.path.join('LLDB', header)"
|
||||
if sys.platform.startswith("linux") or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile':
|
||||
if sys.platform.startswith('freebsd') or sys.platform.startswith("linux") or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile':
|
||||
include_stmt = "'#include <%s>' % os.path.join(public_api_dir, header)"
|
||||
list = [eval(include_stmt) for header in public_headers if (header.startswith("SB") and
|
||||
header.endswith(".h"))]
|
||||
|
|
|
@ -1320,7 +1320,7 @@ class Base(unittest2.TestCase):
|
|||
'FRAMEWORK_INCLUDES' : "-F%s" % self.lib_dir,
|
||||
'LD_EXTRAS' : "%s -rpath %s" % (dsym, self.lib_dir),
|
||||
}
|
||||
elif sys.platform.startswith("linux") or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile':
|
||||
elif sys.platform.startswith('freebsd') or sys.platform.startswith("linux") or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile':
|
||||
d = {'CXX_SOURCES' : sources,
|
||||
'EXE' : exe_name,
|
||||
'CFLAGS_EXTRAS' : "%s -I%s" % (stdflag, os.path.join(os.environ["LLDB_SRC"], "include")),
|
||||
|
|
Loading…
Reference in New Issue