Skip to content

Commit 36cbea6

Browse files
committed
Merging r143807:
------------------------------------------------------------------------ r143807 | chandlerc | 2011-11-05 03:41:42 -0700 (Sat, 05 Nov 2011) | 4 lines 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: 143936
1 parent 4e61d20 commit 36cbea6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/test/lit.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ if not lit.quiet:
147147
# Clang relies on the driver to locate them.
148148
# FIXME: It might be nice to teach the frontend how to find its builtin headers
149149
# in some limited cases when the driver provides no hints.
150-
clang_builtin_includes = os.path.join(llvm_libs_dir, 'clang', '3.0', 'include')
150+
clang_directory = os.path.dirname(os.path.realpath(config.clang))
151+
clang_builtin_includes = os.path.join(os.path.dirname(clang_directory),
152+
'lib', 'clang', '3.0', 'include')
151153
config.substitutions.append( ('%clang_cc1',
152154
'%s -cc1 -internal-nosysroot-isystem %s'
153155
% (config.clang, clang_builtin_includes)) )

0 commit comments

Comments
 (0)