diff options
Diffstat (limited to 'meta/recipes-devtools/clang/clang/0035-openmp-Do-not-emit-date-and-time-into-generate-files.patch')
-rw-r--r-- | meta/recipes-devtools/clang/clang/0035-openmp-Do-not-emit-date-and-time-into-generate-files.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-devtools/clang/clang/0035-openmp-Do-not-emit-date-and-time-into-generate-files.patch b/meta/recipes-devtools/clang/clang/0035-openmp-Do-not-emit-date-and-time-into-generate-files.patch new file mode 100644 index 0000000000..f33d8851ea --- /dev/null +++ b/meta/recipes-devtools/clang/clang/0035-openmp-Do-not-emit-date-and-time-into-generate-files.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From c439de272b3f983c6d97b8f6fec0135323e3363c Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 23 Apr 2025 11:52:48 -0700 | ||
4 | Subject: [PATCH] openmp: Do not emit date and time into generate files | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | This improves reproducibility where the generated files do not | ||
10 | contain time stamps e.g. | ||
11 | |||
12 | //·The·file·was·generated·from·en_US.txt·by·message-converter.py·on·Wed·Apr·23·16:00:53·2025.·// | ||
13 | ./usr/src/debug/openmp/20.1.2/runtime/src/kmp_i18n_id.inc | ||
14 | |||
15 | Upstream-Status: Pending | ||
16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
17 | --- | ||
18 | openmp/runtime/tools/message-converter.py | 3 +-- | ||
19 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
20 | |||
21 | diff --git a/openmp/runtime/tools/message-converter.py b/openmp/runtime/tools/message-converter.py | ||
22 | index a493d64c1692..0bd5f929fab6 100644 | ||
23 | --- a/openmp/runtime/tools/message-converter.py | ||
24 | +++ b/openmp/runtime/tools/message-converter.py | ||
25 | @@ -188,11 +188,10 @@ def insert_header(f, data, commentChar="//"): | ||
26 | f.write( | ||
27 | "{0} Do not edit this file! {0}\n" | ||
28 | "{0} The file was generated from" | ||
29 | - " {1} by {2} on {3}. {0}\n\n".format( | ||
30 | + " {1} by {2} {0}\n\n".format( | ||
31 | commentChar, | ||
32 | os.path.basename(data.filename), | ||
33 | os.path.basename(__file__), | ||
34 | - datetime.datetime.now().ctime(), | ||
35 | ) | ||
36 | ) | ||
37 | |||