DescriptionGN: 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 #
Messages
Total messages: 14 (4 generated)
|