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

Side by Side Diff: BUILD.gn

Issue 1969793002: Remove v8_toolset_for_d8 flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 | gypfiles/toolchain.gypi » ('j') | 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 import("//build/config/sanitizers/sanitizers.gni") 8 import("//build/config/sanitizers/sanitizers.gni")
9 9
10 if (is_android) { 10 if (is_android) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 v8_postmortem_support = false 57 v8_postmortem_support = false
58 58
59 # Similar to vfp but on MIPS. 59 # Similar to vfp but on MIPS.
60 v8_can_use_fpu_instructions = true 60 v8_can_use_fpu_instructions = true
61 61
62 # Similar to the ARM hard float ABI but on MIPS. 62 # Similar to the ARM hard float ABI but on MIPS.
63 v8_use_mips_abi_hardfloat = true 63 v8_use_mips_abi_hardfloat = true
64 } 64 }
65 65
66 v8_random_seed = "314159265" 66 v8_random_seed = "314159265"
67 v8_toolset_for_d8 = "host"
68 v8_toolset_for_shell = "host" 67 v8_toolset_for_shell = "host"
69 68
70 if (is_msan) { 69 if (is_msan) {
71 # Running the V8-generated code on an ARM simulator is a powerful hack that 70 # Running the V8-generated code on an ARM simulator is a powerful hack that
72 # allows the tool to see the memory accesses from JITted code. Without this 71 # allows the tool to see the memory accesses from JITted code. Without this
73 # flag, JS code causes false positive reports from MSan. 72 # flag, JS code causes false positive reports from MSan.
74 v8_target_arch = "arm64" 73 v8_target_arch = "arm64"
75 } else { 74 } else {
76 v8_target_arch = target_cpu 75 v8_target_arch = target_cpu
77 } 76 }
(...skipping 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after
2081 } else { 2080 } else {
2082 group("v8") { 2081 group("v8") {
2083 public_deps = [ 2082 public_deps = [
2084 ":v8_base", 2083 ":v8_base",
2085 snapshot_target, 2084 snapshot_target,
2086 ] 2085 ]
2087 public_configs = [ ":external_config" ] 2086 public_configs = [ ":external_config" ]
2088 } 2087 }
2089 } 2088 }
2090 2089
2091 if ((current_toolchain == host_toolchain && v8_toolset_for_d8 == "host") || 2090 executable("d8") {
2092 (current_toolchain == snapshot_toolchain && v8_toolset_for_d8 == "host") || 2091 sources = [
2093 (current_toolchain != host_toolchain && v8_toolset_for_d8 == "target")) { 2092 "src/d8.cc",
2094 executable("d8") { 2093 "src/d8.h",
2095 sources = [ 2094 ]
2096 "src/d8.cc",
2097 "src/d8.h",
2098 ]
2099 2095
2100 configs -= [ "//build/config/compiler:chromium_code" ] 2096 configs -= [ "//build/config/compiler:chromium_code" ]
2101 configs += [ "//build/config/compiler:no_chromium_code" ] 2097 configs += [ "//build/config/compiler:no_chromium_code" ]
2102 configs += [ 2098 configs += [
2103 # Note: don't use :internal_config here because this target will get 2099 # Note: don't use :internal_config here because this target will get
2104 # the :external_config applied to it by virtue of depending on :v8, and 2100 # the :external_config applied to it by virtue of depending on :v8, and
2105 # you can't have both applied to the same target. 2101 # you can't have both applied to the same target.
2106 ":internal_config_base", 2102 ":internal_config_base",
2107 ":features", 2103 ":features",
2108 ":toolchain", 2104 ":toolchain",
2109 ] 2105 ]
2110 2106
2111 deps = [ 2107 deps = [
2112 ":d8_js2c", 2108 ":d8_js2c",
2113 ":v8", 2109 ":v8",
2114 ":v8_libplatform", 2110 ":v8_libplatform",
2115 "//build/config/sanitizers:deps", 2111 "//build/config/sanitizers:deps",
2116 "//build/win:default_exe_manifest", 2112 "//build/win:default_exe_manifest",
2117 ] 2113 ]
2118 2114
2119 # TODO(jochen): Add support for vtunejit. 2115 # TODO(jochen): Add support for vtunejit.
2120 2116
2121 if (is_posix) { 2117 if (is_posix) {
2122 sources += [ "src/d8-posix.cc" ] 2118 sources += [ "src/d8-posix.cc" ]
2123 } else if (is_win) { 2119 } else if (is_win) {
2124 sources += [ "src/d8-windows.cc" ] 2120 sources += [ "src/d8-windows.cc" ]
2125 } 2121 }
2126 2122
2127 if (!is_component_build) { 2123 if (!is_component_build) {
2128 sources += [ "$target_gen_dir/d8-js.cc" ] 2124 sources += [ "$target_gen_dir/d8-js.cc" ]
2129 } 2125 }
2130 if (v8_enable_i18n_support) { 2126 if (v8_enable_i18n_support) {
2131 deps += [ "//third_party/icu" ] 2127 deps += [ "//third_party/icu" ]
2132 }
2133 } 2128 }
2134 } 2129 }
2135 2130
2136 if ((current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || ( current_toolchain == snapshot_toolchain && v8_toolset_for_shell == "host") || (c urrent_toolchain != host_toolchain && v8_toolset_for_shell == "target")) { 2131 if ((current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || ( current_toolchain == snapshot_toolchain && v8_toolset_for_shell == "host") || (c urrent_toolchain != host_toolchain && v8_toolset_for_shell == "target")) {
2137 executable("shell") { 2132 executable("shell") {
2138 sources = [ 2133 sources = [
2139 "samples/shell.cc", 2134 "samples/shell.cc",
2140 ] 2135 ]
2141 2136
2142 configs -= [ "//build/config/compiler:chromium_code" ] 2137 configs -= [ "//build/config/compiler:chromium_code" ]
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2250 2245
2251 configs -= [ "//build/config/compiler:chromium_code" ] 2246 configs -= [ "//build/config/compiler:chromium_code" ]
2252 configs += [ "//build/config/compiler:no_chromium_code" ] 2247 configs += [ "//build/config/compiler:no_chromium_code" ]
2253 configs += [ 2248 configs += [
2254 ":internal_config", 2249 ":internal_config",
2255 ":libplatform_config", 2250 ":libplatform_config",
2256 ":features", 2251 ":features",
2257 ":toolchain", 2252 ":toolchain",
2258 ] 2253 ]
2259 } 2254 }
OLDNEW
« no previous file with comments | « no previous file | gypfiles/toolchain.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698