[Lldb-commits] [lldb] r157678 - /lldb/trunk/test/api/check_public_api_headers/TestPublicAPIHeaders.py
Filipe Cabecinhas
me at filcab.net
Tue May 29 22:40:23 PDT 2012
Author: filcab
Date: Wed May 30 00:40:23 2012
New Revision: 157678
URL: http://llvm.org/viewvc/llvm-project?rev=157678&view=rev
Log:
Make the test suite work again on Mac OS X without the LLDB_BUILD_TYPE env var
Modified:
lldb/trunk/test/api/check_public_api_headers/TestPublicAPIHeaders.py
Modified: lldb/trunk/test/api/check_public_api_headers/TestPublicAPIHeaders.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/api/check_public_api_headers/TestPublicAPIHeaders.py?rev=157678&r1=157677&r2=157678&view=diff
==============================================================================
--- lldb/trunk/test/api/check_public_api_headers/TestPublicAPIHeaders.py (original)
+++ lldb/trunk/test/api/check_public_api_headers/TestPublicAPIHeaders.py Wed May 30 00:40:23 2012
@@ -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"))]
More information about the lldb-commits
mailing list