forked from OSchip/llvm-project
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:
parent
f96964b6ef
commit
51c277876a
|
@ -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"))]
|
||||
|
|
Loading…
Reference in New Issue