OLD | NEW |
---|---|
(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 | |
OLD | NEW |