summaryrefslogtreecommitdiffstats
path: root/clang/tools/ccc/ccclib/Arguments.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-01-14 23:26:40 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-01-14 23:26:40 +0000
commit87cb84e9f08db632fcbf2320ac1defa3a7093004 (patch)
tree61fea25882a4bc11d5e564af5104b9fbacb5f42e /clang/tools/ccc/ccclib/Arguments.py
parent34074326449e1e6b7de77a4c9a0d78ea4b54ca64 (diff)
downloadbcm5719-llvm-87cb84e9f08db632fcbf2320ac1defa3a7093004.tar.gz
bcm5719-llvm-87cb84e9f08db632fcbf2320ac1defa3a7093004.zip
ccc: Implement support clang PTH using gcc PCH style interface.
This requires some hackery, as gcc's PCH mechanism changes behavior, whereas while PTH is simply a cache. Notably: - Automatically cause clang to load a .pth file if we find one that matches a command line -include argument (similar to how gcc looks for .gch files). - When generating precompiled headers, translate the suffix from .gch to .pth (so we do not conflict with actual gcc PCH files). - When generating precompiled headers, copy the input header to the same location as the output PTH file. This is necessary because gcc supports -include xxx.h even if xxx.h doesn't exist, but for clang we need to actually have the contents of this file available. llvm-svn: 62246
Diffstat (limited to 'clang/tools/ccc/ccclib/Arguments.py')
-rw-r--r--clang/tools/ccc/ccclib/Arguments.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/ccc/ccclib/Arguments.py b/clang/tools/ccc/ccclib/Arguments.py
index 97564558a61..a3c25f197be 100644
--- a/clang/tools/ccc/ccclib/Arguments.py
+++ b/clang/tools/ccc/ccclib/Arguments.py
@@ -556,7 +556,7 @@ class OptionParser:
self.addOption(JoinedOrSeparateOption('-idirafter', self.iGroup))
self.addOption(JoinedOrSeparateOption('-iquote', self.iGroup))
self.isysrootOption = self.addOption(JoinedOrSeparateOption('-isysroot', self.iGroup))
- self.addOption(JoinedOrSeparateOption('-include', self.iGroup))
+ self.includeOption = self.addOption(JoinedOrSeparateOption('-include', self.iGroup))
self.addOption(JoinedOption('-i', self.iGroup))
self.keep_private_externsOption = self.addOption(JoinedOrSeparateOption('-keep_private_externs'))
OpenPOWER on IntegriCloud