summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-11-05 10:41:42 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-11-05 10:41:42 +0000
commitafd2441f60d00c335aa96fc096ec1e12bbc5f2bd (patch)
tree8a41e1a3e2adda219ebc5c0d1a714b3d7bad27c9
parent979272c01c1b00f8c3ae6355e39298969aecbd3b (diff)
downloadbcm5719-llvm-afd2441f60d00c335aa96fc096ec1e12bbc5f2bd.tar.gz
bcm5719-llvm-afd2441f60d00c335aa96fc096ec1e12bbc5f2bd.zip
Compute the path properly on different platforms. Specifically, compute
it the exact same way that the Clang code computes this path. Hopefully with this, the MSVC bots will actually come back to life. llvm-svn: 143807
-rw-r--r--clang/test/lit.cfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg
index a7430db0233..35f38aa44a7 100644
--- a/clang/test/lit.cfg
+++ b/clang/test/lit.cfg
@@ -147,7 +147,9 @@ if not lit.quiet:
# Clang relies on the driver to locate them.
# FIXME: It might be nice to teach the frontend how to find its builtin headers
# in some limited cases when the driver provides no hints.
-clang_builtin_includes = os.path.join(llvm_libs_dir, 'clang', '3.0', 'include')
+clang_directory = os.path.dirname(os.path.realpath(config.clang))
+clang_builtin_includes = os.path.join(os.path.dirname(clang_directory),
+ 'lib', 'clang', '3.0', 'include')
config.substitutions.append( ('%clang_cc1',
'%s -cc1 -internal-nosysroot-isystem %s'
% (config.clang, clang_builtin_includes)) )
OpenPOWER on IntegriCloud