Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Issue 2255093004: Make __DATE__ and __TIME__ to evaluate to an empty string. (Closed)

Created:
4 years, 4 months ago by Yoshisato Yanagisawa
Modified:
3 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make __DATE__ and __TIME__ to evaluate to an empty string. If __DATE__ or __TIME__ used in code, current date or time will be filled. Such a value may change compile by compile, and breaks deterministic build. BUG=314403 Committed: https://crrev.com/43088a9ef885a695061a49bcd0992cbce00a7568 Cr-Commit-Position: refs/heads/master@{#414018}

Patch Set 1 #

Patch Set 2 : changed the default behavior. #

Total comments: 3

Patch Set 3 : force eliminate __DATE__ and __TIME__. #

Patch Set 4 : cleaned up comments. #

Patch Set 5 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M build/config/compiler/BUILD.gn View 1 2 3 4 1 chunk +9 lines, -0 lines 2 comments Download

Messages

Total messages: 49 (16 generated)
Yoshisato Yanagisawa
4 years, 4 months ago (2016-08-19 06:42:15 UTC) #2
M-A Ruel
+Nico since he probably has an opinion about it; he's OOO but comes back on ...
4 years, 4 months ago (2016-08-19 20:01:35 UTC) #3
Dirk Pranke
On 2016/08/19 20:01:35, M-A Ruel wrote: > +Nico since he probably has an opinion about ...
4 years, 4 months ago (2016-08-19 20:09:34 UTC) #4
Yoshisato Yanagisawa
On 2016/08/19 20:09:34, Dirk Pranke wrote: > On 2016/08/19 20:01:35, M-A Ruel wrote: > > ...
4 years, 4 months ago (2016-08-22 07:34:34 UTC) #6
Dirk Pranke
https://codereview.chromium.org/2255093004/diff/20001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2255093004/diff/20001/build/config/compiler/BUILD.gn#newcode85 build/config/compiler/BUILD.gn:85: enable_date_time_builtin_macro = false Does this even need to be ...
4 years, 4 months ago (2016-08-22 17:31:45 UTC) #8
M-A Ruel
https://codereview.chromium.org/2255093004/diff/20001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2255093004/diff/20001/build/config/compiler/BUILD.gn#newcode85 build/config/compiler/BUILD.gn:85: enable_date_time_builtin_macro = false On 2016/08/22 17:31:45, Dirk Pranke wrote: ...
4 years, 4 months ago (2016-08-22 19:16:54 UTC) #9
Yoshisato Yanagisawa
https://codereview.chromium.org/2255093004/diff/20001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2255093004/diff/20001/build/config/compiler/BUILD.gn#newcode85 build/config/compiler/BUILD.gn:85: enable_date_time_builtin_macro = false I do not have strong opinions ...
4 years, 4 months ago (2016-08-23 01:37:54 UTC) #10
Dirk Pranke
lgtm
4 years, 4 months ago (2016-08-23 01:48:55 UTC) #11
M-A Ruel
Rewrote the CL description. lgtm
4 years, 4 months ago (2016-08-23 13:57:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2255093004/60001
4 years, 4 months ago (2016-08-23 13:57:53 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/266795)
4 years, 4 months ago (2016-08-23 16:12:10 UTC) #18
Yoshisato Yanagisawa
Since this is inside !is_win, I do not think this affects windows build. Let me ...
4 years, 4 months ago (2016-08-24 01:19:24 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2255093004/60001
4 years, 4 months ago (2016-08-24 01:20:10 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/267368)
4 years, 4 months ago (2016-08-24 04:02:11 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2255093004/80001
4 years, 4 months ago (2016-08-24 06:04:33 UTC) #26
commit-bot: I haz the power
Failed to apply the patch. On branch working_branch Your branch is up-to-date with 'origin/refs/pending/heads/master'. nothing ...
4 years, 4 months ago (2016-08-24 08:33:03 UTC) #28
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/43088a9ef885a695061a49bcd0992cbce00a7568 Cr-Commit-Position: refs/heads/master@{#414018}
4 years, 4 months ago (2016-08-24 08:33:25 UTC) #30
rohitrao (ping after 24h)
This appears to be crashing clang on all of the internal iOS bots. I can ...
4 years, 4 months ago (2016-08-24 11:23:19 UTC) #32
justincohen
The following line in third_party code is causing the failure: printf("class-dump %s compiled %s\n", CLASS_DUMP_VERSION, ...
4 years, 4 months ago (2016-08-24 11:31:02 UTC) #34
Nico
https://codereview.chromium.org/2255093004/diff/80001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2255093004/diff/80001/build/config/compiler/BUILD.gn#newcode173 build/config/compiler/BUILD.gn:173: "-Wno-builtin-macro-redefined", This looks pretty hacky. Can we instead teach ...
4 years, 4 months ago (2016-08-24 14:41:12 UTC) #36
Nico
Looking at the assertion message, clang probably has a bug and doesn't expect this, when ...
4 years, 4 months ago (2016-08-24 14:45:12 UTC) #37
Nico
(sent http://lists.llvm.org/pipermail/cfe-dev/2016-August/050516.html to discuss a possibly less hacky approach)
4 years, 4 months ago (2016-08-24 14:54:02 UTC) #38
Nico
Filed https://llvm.org/bugs/show_bug.cgi?id=29119 with a reduced repro for the crash (thanks to justincohen for reducing!) I ...
4 years, 4 months ago (2016-08-24 15:41:51 UTC) #39
justincohen
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2277783002/ by justincohen@chromium.org. ...
4 years, 4 months ago (2016-08-24 15:44:07 UTC) #40
Yoshisato Yanagisawa
I also think we need to wait until the bug fixed. Please feel free to ...
4 years, 4 months ago (2016-08-25 03:02:21 UTC) #41
mithro
On 2016/08/25 03:02:21, Yoshisato Yanagisawa wrote: > I also think we need to wait until ...
4 years, 3 months ago (2016-08-25 06:19:02 UTC) #42
Nico
That means you have to change all kinds of third party code, which might be ...
4 years, 3 months ago (2016-08-25 14:06:48 UTC) #43
M-A Ruel
On 2016/08/25 14:06:48, Nico wrote: > That means you have to change all kinds of ...
4 years, 3 months ago (2016-08-25 18:47:53 UTC) #44
Nico
On 2016/08/25 18:47:53, M-A Ruel wrote: > On 2016/08/25 14:06:48, Nico wrote: > > That ...
4 years, 3 months ago (2016-08-25 18:50:27 UTC) #45
Dirk Pranke
On 2016/08/25 18:50:27, Nico wrote: > Enable -Wdate-time globally, it'll catch regressions. I'll post a ...
4 years, 3 months ago (2016-08-25 19:08:56 UTC) #46
Nico
(looking at -Wdate-time's implementation, it warns on Ident__TIMESTAMP__ too. When this relands, it probably wants ...
4 years, 3 months ago (2016-08-25 19:14:45 UTC) #47
Dirk Pranke
On 2016/08/25 19:08:56, Dirk Pranke wrote: > On 2016/08/25 18:50:27, Nico wrote: > > Enable ...
4 years, 3 months ago (2016-08-25 19:18:45 UTC) #48
Nico
3 years, 10 months ago (2017-01-27 20:07:02 UTC) #49
Message was sent while issue was closed.
I think you can land this now. (But set __TIMESTAMP__ as well.)

Powered by Google App Engine
This is Rietveld 408576698