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

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@157678 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/api/check_public_api_headers/TestPublicAPIHeaders.py b/test/api/check_public_api_headers/TestPublicAPIHeaders.py
index bf084db..97b46c5 100644
--- a/test/api/check_public_api_headers/TestPublicAPIHeaders.py
+++ b/test/api/check_public_api_headers/TestPublicAPIHeaders.py
@@ -28,7 +28,7 @@
 
         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 @@
         # 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"))]