diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-04-26 21:33:40 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-04-26 21:33:40 +0000 |
commit | 65110caf70bc6c07c3bc223acf03643af47a6643 (patch) | |
tree | 6f7a56c949e81f7f8d4be6e44a40aedc652cdcd5 /tools | |
parent | 0532df02a72a32a6042e961b71989db73d0d0a22 (diff) |
[PCH/modules] Require the preprocessing record option to match the used PCH, if modules are enabled.
The preprocessing record becomes important when modules are enabled, since it is used to calculate the
module cache hash.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180635 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 9b083e49f5..3f39a78625 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -3508,6 +3508,7 @@ int write_pch_file(const char *filename, int argc, const char *argv[]) { unsaved_files, num_unsaved_files, CXTranslationUnit_Incomplete | + CXTranslationUnit_DetailedPreprocessingRecord| CXTranslationUnit_ForSerialization); if (!TU) { fprintf(stderr, "Unable to load translation unit!\n"); |