Optionally use new GN optimization config.
authorbrettw <brettw@chromium.org>
Fri, 11 Sep 2015 18:28:15 +0000 (11:28 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 11 Sep 2015 18:28:24 +0000 (18:28 +0000)
commitea8cfa929fcd90975039cb037e7547bf75d7aec9
tree943fdc9efccc6fa3b667859bfc65e8aa31f506ad
parent6ed90e6dd0a7e9f3af53231b39e5f47cefac4edd
Optionally use new GN optimization config.

The GN default optimization flag is changing from being specific to the
debug/release status of the build to always being "default_optimization" so
it's easier to override without being conditional on the exact setup in
BUILDCONFIG.gn. See https://codereview.chromium.org/1324623005/

Since V8 is DEPS-ed in, it will need to support both modes to allow a landing.
This patch uses a temporary transitional flag I added to BUILDCONFIG to
indicate which variant should be used. After the patch is landed, we can remove
the new conditions and just remove default_optimization.

Review URL: https://codereview.chromium.org/1333963002

Cr-Commit-Position: refs/heads/master@{#30703}
BUILD.gn