Split the GN 'snapshot_toolchain' logic out into an include file.
authordpranke <dpranke@chromium.org>
Tue, 22 Sep 2015 02:28:32 +0000 (19:28 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 22 Sep 2015 02:28:40 +0000 (02:28 +0000)
commit7d5d1570d9eb716f6f869274c0df277bc71328dd
treeaaa62a92f3376658f99f8f357f7c7d88dbe28111
parent6e07f5a75ba2c949ac96efabd5248c76b9957112
Split the GN 'snapshot_toolchain' logic out into an include file.

We need to build parts of v8 with a toolchain that might be different
from both the default (target) toolchain and the regular host toolchain,
because we need the snapshot to have the same bit-width as the target.
V8's build defines a 'snapshot_toolchain' setting for this.

It turns out that we need the value of this toolchain to be exposed
to the Chromium build because some of the test targets (in browser_tests)
depend on d8 and need to be able to built using the same toolchain.

R=brett@chromium.org, jochen@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#30854}
BUILD.gn
snapshot_toolchain.gni [new file with mode: 0644]