Skip to content

Commit 27abdf7

Browse files
committed
Only write timestamp file with -fmodules-validate-once-per-build-session
1 parent 6550eec commit 27abdf7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/Serialization/ASTWriter.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4906,7 +4906,9 @@ ASTFileSignature ASTWriter::WriteAST(Sema &SemaRef, StringRef OutputFile,
49064906

49074907
WritingAST = false;
49084908

4909-
if (WritingModule)
4909+
if (WritingModule && SemaRef.PP.getHeaderSearchInfo()
4910+
.getHeaderSearchOpts()
4911+
.ModulesValidateOncePerBuildSession)
49104912
updateModuleTimestamp(OutputFile);
49114913

49124914
if (ShouldCacheASTInMemory) {

0 commit comments

Comments
 (0)