diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-28 19:38:45 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-28 19:38:45 +0000 |
commit | ea71a5b388bc5bf91cb81ef004d0dd7f011af512 (patch) | |
tree | 7cb0471474049f95224a83ca0797008453b20f2d /lib/Driver/Tools.cpp | |
parent | ad02d7debd03ff275ac8ea27891a4ecccdb78068 (diff) |
With -ccc-pch-is-pch, always treat precompiled inputs as PCH,
regardless of extension.
- Otherwise we can't expect that just plugging in -ccc-pch-is-pch
will work.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70318 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index d298a22d1a..93966a53f8 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -138,7 +138,7 @@ void Clang::AddPreprocessingOptions(const Driver &D, if (FoundPCH || FoundPTH) { A->claim(); - if (FoundPCH) + if (D.CCCUsePCH) CmdArgs.push_back("-include-pch"); else CmdArgs.push_back("-include-pth"); |