[Openmp-commits] [openmp] b6e113a - Drop timestamp in generated source code (#146822)
via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jul 3 09:18:50 PDT 2025
Author: Bernhard M. Wiedemann
Date: 2025-07-03T18:18:47+02:00
New Revision: b6e113a149bfa196a90a260f69f06b0070bd3670
URL: https://github.com/llvm/llvm-project/commit/b6e113a149bfa196a90a260f69f06b0070bd3670
DIFF: https://github.com/llvm/llvm-project/commit/b6e113a149bfa196a90a260f69f06b0070bd3670.diff
LOG: Drop timestamp in generated source code (#146822)
Fixes #72206
This helps reproducible builds of libomp.so --
probably because LLVM's LTO computed a hash of inputs to generate its
symbol names.
note: if it is desired to keep the timestamp, we could instead use
[`SOURCE_DATE_EPOCH`](https://reproducible-builds.org/docs/source-date-epoch/)
to make it deterministic.
This PR was done while working on [reproducible builds for
openSUSE](https://en.opensuse.org/openSUSE:Reproducible_Builds).
Added:
Modified:
openmp/runtime/tools/message-converter.py
Removed:
################################################################################
diff --git a/openmp/runtime/tools/message-converter.py b/openmp/runtime/tools/message-converter.py
index a493d64c1692d..5e2aeba6c99d6 100644
--- a/openmp/runtime/tools/message-converter.py
+++ b/openmp/runtime/tools/message-converter.py
@@ -11,7 +11,6 @@
#
import argparse
-import datetime
import os
import platform
import re
@@ -188,11 +187,10 @@ def insert_header(f, data, commentChar="//"):
f.write(
"{0} Do not edit this file! {0}\n"
"{0} The file was generated from"
- " {1} by {2} on {3}. {0}\n\n".format(
+ " {1} by {2}. {0}\n\n".format(
commentChar,
os.path.basename(data.filename),
os.path.basename(__file__),
- datetime.datetime.now().ctime(),
)
)
More information about the Openmp-commits
mailing list