[all-commits] [llvm/llvm-project] 91e19f: [driver] Explicitly specify `-fbuild-session-times...

Volodymyr Sapsai via All-commits all-commits at lists.llvm.org
Tue Oct 19 13:31:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 91e19f66e51ac3fda2309f5e67b02fcccd4d58a0
      https://github.com/llvm/llvm-project/commit/91e19f66e51ac3fda2309f5e67b02fcccd4d58a0
  Author: Volodymyr Sapsai <vsapsai at apple.com>
  Date:   2021-10-19 (Tue, 19 Oct 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/modules.m

  Log Message:
  -----------
  [driver] Explicitly specify `-fbuild-session-timestamp` in seconds.

Representation of the file's last modification time depends on the file
system and isn't guaranteed to be in seconds. Cast to seconds explicitly
and tighten the test case to check the magnitude of the calculated
value, so we can catch passing milliseconds or nanoseconds.

rdar://83915615

Differential Revision: https://reviews.llvm.org/D111205




More information about the All-commits mailing list