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

Side by Side Diff: BUILD.gn

Issue 1008933002: Don't assert that we only cross compile on linux (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | 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
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/mips.gni") 7 import("//build/config/mips.gni")
8 8
9 # Because standalone V8 builds are not supported, assume this is part of a 9 # Because standalone V8 builds are not supported, assume this is part of a
10 # Chromium build. 10 # Chromium build.
(...skipping 14 matching lines...) Expand all
25 v8_target_arch = target_cpu 25 v8_target_arch = target_cpu
26 v8_random_seed = "314159265" 26 v8_random_seed = "314159265"
27 v8_toolset_for_d8 = "host" 27 v8_toolset_for_d8 = "host"
28 28
29 # The snapshot needs to be compiled for the host, but compiled with 29 # The snapshot needs to be compiled for the host, but compiled with
30 # a toolchain that matches the bit-width of the target. 30 # a toolchain that matches the bit-width of the target.
31 # 31 #
32 # TODO(GYP): For now we only support 32-bit little-endian target builds from an 32 # TODO(GYP): For now we only support 32-bit little-endian target builds from an
33 # x64 Linux host. Eventually we need to support all of the host/target 33 # x64 Linux host. Eventually we need to support all of the host/target
34 # configurations v8 runs on. 34 # configurations v8 runs on.
35 if (host_cpu == "x64" && 35 if (host_cpu == "x64" && host_os == "linux" &&
36 (target_cpu == "arm" || target_cpu == "mipsel" || target_cpu == "x86")) { 36 (target_cpu == "arm" || target_cpu == "mipsel" || target_cpu == "x86")) {
37 assert(host_os == "linux")
38 snapshot_toolchain = "//build/toolchain/linux:clang_x86" 37 snapshot_toolchain = "//build/toolchain/linux:clang_x86"
39 } else { 38 } else {
40 snapshot_toolchain = default_toolchain 39 snapshot_toolchain = default_toolchain
41 } 40 }
42 41
43 ############################################################################### 42 ###############################################################################
44 # Configurations 43 # Configurations
45 # 44 #
46 config("internal_config") { 45 config("internal_config") {
47 visibility = [ ":*" ] # Only targets in this file can depend on this. 46 visibility = [ ":*" ] # Only targets in this file can depend on this.
(...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 sources += [ 1581 sources += [
1583 "src/d8-debug.cc", 1582 "src/d8-debug.cc",
1584 "$target_gen_dir/d8-js.cc", 1583 "$target_gen_dir/d8-js.cc",
1585 ] 1584 ]
1586 } 1585 }
1587 if (v8_enable_i18n_support) { 1586 if (v8_enable_i18n_support) {
1588 deps += [ "//third_party/icu" ] 1587 deps += [ "//third_party/icu" ]
1589 } 1588 }
1590 } 1589 }
1591 } 1590 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698