Skip to content

Commit b6e113a

Browse files
authored
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).
1 parent e8f491f commit b6e113a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

openmp/runtime/tools/message-converter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#
1212

1313
import argparse
14-
import datetime
1514
import os
1615
import platform
1716
import re
@@ -188,11 +187,10 @@ def insert_header(f, data, commentChar="//"):
188187
f.write(
189188
"{0} Do not edit this file! {0}\n"
190189
"{0} The file was generated from"
191-
" {1} by {2} on {3}. {0}\n\n".format(
190+
" {1} by {2}. {0}\n\n".format(
192191
commentChar,
193192
os.path.basename(data.filename),
194193
os.path.basename(__file__),
195-
datetime.datetime.now().ctime(),
196194
)
197195
)
198196

0 commit comments

Comments
 (0)