aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/ASTUnit.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-12-15 00:06:45 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-12-15 00:06:45 +0000
commit8b9adfea5e834eaee0f45d8cc7fb052d68df4a46 (patch)
tree0ca64758fa0162c3ab4caa04fd2705983d455503 /lib/Frontend/ASTUnit.cpp
parent71d1740c94060b424bb745d6c6973ff27cfdee06 (diff)
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
Diffstat (limited to 'lib/Frontend/ASTUnit.cpp')
-rw-r--r--lib/Frontend/ASTUnit.cpp6
1 files changed, 2 insertions, 4 deletions
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);