From 8b9adfea5e834eaee0f45d8cc7fb052d68df4a46 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 15 Dec 2009 00:06:45 +0000 Subject: Add -resource-dir to clang -cc1, this allows the base directory for compiler resources (e.g., /usr/lib/clang/1.1) to be passed on the command line instead of computed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91370 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/ASTUnit.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/Frontend/ASTUnit.cpp') diff --git a/lib/Frontend/ASTUnit.cpp b/lib/Frontend/ASTUnit.cpp index f6cb1704f6..48296c7289 100644 --- a/lib/Frontend/ASTUnit.cpp +++ b/lib/Frontend/ASTUnit.cpp @@ -327,10 +327,8 @@ ASTUnit *ASTUnit::LoadFromCommandLine(const char **ArgBegin, (const char**) CCArgs.data()+CCArgs.size(), Diags); - // Set the builtin include path. - llvm::sys::Path P(ResourceFilesPath); - P.appendComponent("include"); - CI.getHeaderSearchOpts().BuiltinIncludePath = P.str(); + // Override the resources path. + CI.getHeaderSearchOpts().ResourceDir = ResourceFilesPath; CI.getFrontendOpts().DisableFree = UseBumpAllocator; return LoadFromCompilerInvocation(CI, Diags, OnlyLocalDecls); -- cgit v1.2.3