Make the test suite work again on Mac OS X without the LLDB_BUILD_TYPE env var

llvm-svn: 157678
This commit is contained in:
Filipe Cabecinhas 2012-05-30 05:40:23 +00:00
parent f96964b6ef
commit 51c277876a
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ class SBDirCheckerCase(TestBase):
if sys.platform.startswith("darwin"):
d = {'FRAMEWORK_INCLUDES' : "-F%s" % self.build_dir}
if sys.platform.startswith("linux"):
if sys.platform.startswith("linux") or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile':
d = {'FRAMEWORK_INCLUDES' : "-I%s" % os.path.join(os.environ["LLDB_SRC"], "include")}
self.buildDefault(dictionary=d)
self.exe_name = 'a.out'
@ -48,7 +48,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"):
if 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"))]