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

Issue 896413003: GN: Allow users to enable DCHECK on Release builds. (Closed)

Created:
5 years, 10 months ago by tfarina
Modified:
5 years, 10 months ago
CC:
chromium-reviews, dzhioev (left Google), Nico
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GN: Allow users to enable DCHECK on Release builds. This declares dcheck_always_on argument (false by default) so users can override it. If set to true this will make a compiler define (DCHECK_ALWAYS_ON=1). This mirrors GYP counterpart. Debug: $ gn gen out_gn/Debug --args='dcheck_always_on=true' $ ninja -v -C out_gn/Debug base Release: $ gn gen --args='is_debug=false dcheck_always_on=true' out_gn/Release $ ninja -v -C out_gn/Release base Manually checked that -DDCHECK_ALWAYS_ON=1 is passed on the command line to the compiler. BUG=None TEST=see above R=brettw@chromium.org Committed: https://crrev.com/a52158d7c0b0c697d1625680fbaf9c2902d26da7 Cr-Commit-Position: refs/heads/master@{#314867}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Release builds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M build/common.gypi View 1 1 chunk +1 line, -1 line 0 comments Download
M build/config/BUILD.gn View 1 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
tfarina
5 years, 10 months ago (2015-02-05 16:27:48 UTC) #1
Mostyn Bramley-Moore
https://codereview.chromium.org/896413003/diff/1/build/config/BUILD.gn File build/config/BUILD.gn (right): https://codereview.chromium.org/896413003/diff/1/build/config/BUILD.gn#newcode23 build/config/BUILD.gn:23: # Set to true to enable dcheck in release. ...
5 years, 10 months ago (2015-02-05 16:54:35 UTC) #3
tfarina
https://codereview.chromium.org/896413003/diff/1/build/config/BUILD.gn File build/config/BUILD.gn (right): https://codereview.chromium.org/896413003/diff/1/build/config/BUILD.gn#newcode23 build/config/BUILD.gn:23: # Set to true to enable dcheck in release. ...
5 years, 10 months ago (2015-02-05 17:05:19 UTC) #4
Dirk Pranke
lgtm, but I think Brett wants to review any changes to the toplevel files in ...
5 years, 10 months ago (2015-02-05 17:08:11 UTC) #5
brettw
lgtm
5 years, 10 months ago (2015-02-05 19:28:09 UTC) #6
tfarina
Scott, could you approve this as build/OWNERS?
5 years, 10 months ago (2015-02-05 20:20:00 UTC) #8
Nico
build lgtm
5 years, 10 months ago (2015-02-05 20:31:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896413003/20001
5 years, 10 months ago (2015-02-05 20:32:47 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-05 20:36:25 UTC) #13
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 20:37:12 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a52158d7c0b0c697d1625680fbaf9c2902d26da7
Cr-Commit-Position: refs/heads/master@{#314867}

Powered by Google App Engine
This is Rietveld 408576698