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

Side by Side Diff: snapshot_toolchain.gni

Issue 1350223004: Split the GN 'snapshot_toolchain' logic out into an include file. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
jochen (gone - plz use gerrit) 2015/09/21 15:10:49 please use the v8 license header. Essentially "The
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # The snapshot needs to be compiled for the host, but compiled with
6 # a toolchain that matches the bit-width of the target.
7
8 # TODO(GYP): For now we only support 32-bit little-endian target builds from an
9 # x64 Linux host. Eventually we need to support all of the host/target
10 # configurations v8 runs on.
11 if (host_cpu == "x64" && host_os == "linux") {
12 if (target_cpu == "arm" || target_cpu == "mipsel" || target_cpu == "x86") {
13 snapshot_toolchain = "//build/toolchain/linux:clang_x86"
14 } else if (target_cpu == "x64") {
15 snapshot_toolchain = "//build/toolchain/linux:clang_x64"
16 } else {
17 assert(false, "Need environment for this arch")
18 }
19 } else {
20 snapshot_toolchain = default_toolchain
21 }
22
23
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698