[Module] Respect `-fno-pch-timestamps` when building modules
authorSteven Wu <stevenwu@apple.com>
Wed, 1 Feb 2023 18:34:05 +0000 (10:34 -0800)
committerSteven Wu <stevenwu@apple.com>
Wed, 1 Feb 2023 18:34:35 +0000 (10:34 -0800)
commit5cff68fca0bc21ccad20cc7c8fb9845e32b4c925
tree2bcb9fa92750d4a32998ede8d372159e356861fd
parentca174f12c45b79869f2324a853f1fcc082506e71
[Module] Respect `-fno-pch-timestamps` when building modules

Always respect the FrontendOption to not include timestamps in PCH or
Modules when `-fno-pch-timestamps` is specified.

Reviewed By: benlangmuir

Differential Revision: https://reviews.llvm.org/D141632
clang/lib/Frontend/FrontendActions.cpp
clang/test/Modules/timestamps.c [new file with mode: 0644]