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

Issue 2284453002: Make compiles fail when __DATE__, __TIME__, or __TIMESTAMP_ are used. (Closed)

Created:
4 years, 3 months ago by Dirk Pranke
Modified:
4 years, 3 months ago
CC:
chromium-reviews, yyanagisawa, mithro, justincohen
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make compiles fail when __DATE__, __TIME__, or __TIMESTAMP_ are used. Using these compiler defines makes builds nondeterministic, which we don't want. The -Wdate-time flag (plus -Werror) should make use of these flags a fatal error. The flag should be supported by both gcc and clang, so even though we can't check this w/ visual studio, we should largely still get coverage on windows via win clang. R=thakis@chromium.org BUG=314403

Patch Set 1 #

Total comments: 1

Patch Set 2 : disable for nacl, improve comment #

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

Messages

Total messages: 17 (10 generated)
Dirk Pranke
4 years, 3 months ago (2016-08-25 19:18:05 UTC) #2
Nico
lgtm if it builds https://codereview.chromium.org/2284453002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2284453002/diff/1/build/config/compiler/BUILD.gn#newcode970 build/config/compiler/BUILD.gn:970: # Disable __DATE__ and __TIME__ ...
4 years, 3 months ago (2016-08-25 19:20:04 UTC) #4
Dirk Pranke
On 2016/08/25 19:20:04, Nico wrote: > lgtm if it builds > > https://codereview.chromium.org/2284453002/diff/1/build/config/compiler/BUILD.gn > File ...
4 years, 3 months ago (2016-08-25 19:23:59 UTC) #5
rohitrao (ping after 24h)
Will this cause the third_party/class-dump code to throw errors again? +Justin and I can run ...
4 years, 3 months ago (2016-08-25 19:28:59 UTC) #7
M-A Ruel
On 2016/08/25 19:28:59, rohitrao wrote: > Will this cause the third_party/class-dump code to throw errors ...
4 years, 3 months ago (2016-08-25 19:45:13 UTC) #10
Dirk Pranke
On 2016/08/25 19:45:13, M-A Ruel wrote: > On 2016/08/25 19:28:59, rohitrao wrote: > > Will ...
4 years, 3 months ago (2016-08-25 19:51:53 UTC) #11
Dirk Pranke
4 years, 3 months ago (2016-08-25 20:19:16 UTC) #17
Message was sent while issue was closed.
Okay, this clearly isn't going to work at the moment, and I'm not signing up to
fix the errors, so I'm going to close this for now.

We can always try to reland once the problems have been addressed.

Powered by Google App Engine
This is Rietveld 408576698