Commit 6cb38427 authored by jochen's avatar jochen Committed by Commit bot

Remove v8_toolset_for_d8 flag

R=machenbach@chromium.org
BUG=chromium:609107

Review-Url: https://codereview.chromium.org/1969793002
Cr-Commit-Position: refs/heads/master@{#36198}
parent d748daa3
...@@ -64,7 +64,6 @@ declare_args() { ...@@ -64,7 +64,6 @@ declare_args() {
} }
v8_random_seed = "314159265" v8_random_seed = "314159265"
v8_toolset_for_d8 = "host"
v8_toolset_for_shell = "host" v8_toolset_for_shell = "host"
if (is_msan) { if (is_msan) {
...@@ -2066,48 +2065,44 @@ if (is_component_build) { ...@@ -2066,48 +2065,44 @@ if (is_component_build) {
} }
} }
if ((current_toolchain == host_toolchain && v8_toolset_for_d8 == "host") || executable("d8") {
(current_toolchain == snapshot_toolchain && v8_toolset_for_d8 == "host") || sources = [
(current_toolchain != host_toolchain && v8_toolset_for_d8 == "target")) { "src/d8.cc",
executable("d8") { "src/d8.h",
sources = [ ]
"src/d8.cc",
"src/d8.h",
]
configs -= [ "//build/config/compiler:chromium_code" ] configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [ configs += [
# Note: don't use :internal_config here because this target will get # Note: don't use :internal_config here because this target will get
# the :external_config applied to it by virtue of depending on :v8, and # the :external_config applied to it by virtue of depending on :v8, and
# you can't have both applied to the same target. # you can't have both applied to the same target.
":internal_config_base", ":internal_config_base",
":features", ":features",
":toolchain", ":toolchain",
] ]
deps = [ deps = [
":d8_js2c", ":d8_js2c",
":v8", ":v8",
":v8_libplatform", ":v8_libplatform",
"//build/config/sanitizers:deps", "//build/config/sanitizers:deps",
"//build/win:default_exe_manifest", "//build/win:default_exe_manifest",
] ]
# TODO(jochen): Add support for vtunejit. # TODO(jochen): Add support for vtunejit.
if (is_posix) { if (is_posix) {
sources += [ "src/d8-posix.cc" ] sources += [ "src/d8-posix.cc" ]
} else if (is_win) { } else if (is_win) {
sources += [ "src/d8-windows.cc" ] sources += [ "src/d8-windows.cc" ]
} }
if (!is_component_build) { if (!is_component_build) {
sources += [ "$target_gen_dir/d8-js.cc" ] sources += [ "$target_gen_dir/d8-js.cc" ]
} }
if (v8_enable_i18n_support) { if (v8_enable_i18n_support) {
deps += [ "//third_party/icu" ] deps += [ "//third_party/icu" ]
}
} }
} }
......
...@@ -76,11 +76,6 @@ ...@@ -76,11 +76,6 @@
# it's handled in gypfiles/standalone.gypi. # it's handled in gypfiles/standalone.gypi.
'want_separate_host_toolset%': 1, 'want_separate_host_toolset%': 1,
# Toolset the d8 binary should be compiled for. Possible values are 'host'
# and 'target'. If you want to run v8 tests, it needs to be set to 'target'.
# The setting is ignored if want_separate_host_toolset is 0.
'v8_toolset_for_d8%': 'target',
# Toolset the shell binary should be compiled for. Possible values are # Toolset the shell binary should be compiled for. Possible values are
# 'host' and 'target'. # 'host' and 'target'.
# The setting is ignored if want_separate_host_toolset is 0. # The setting is ignored if want_separate_host_toolset is 0.
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
# Enable support for Intel VTune. Supported on ia32/x64 only # Enable support for Intel VTune. Supported on ia32/x64 only
'v8_enable_vtunejit%': 0, 'v8_enable_vtunejit%': 0,
'v8_enable_i18n_support%': 1, 'v8_enable_i18n_support%': 1,
'v8_toolset_for_d8%': 'target',
}, },
'includes': ['../gypfiles/toolchain.gypi', '../gypfiles/features.gypi'], 'includes': ['../gypfiles/toolchain.gypi', '../gypfiles/features.gypi'],
'targets': [ 'targets': [
...@@ -52,7 +51,7 @@ ...@@ -52,7 +51,7 @@
], ],
'conditions': [ 'conditions': [
[ 'want_separate_host_toolset==1', { [ 'want_separate_host_toolset==1', {
'toolsets': [ '<(v8_toolset_for_d8)', ], 'toolsets': [ 'target', ],
}], }],
['(OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="netbsd" \ ['(OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="netbsd" \
or OS=="openbsd" or OS=="solaris" or OS=="android" \ or OS=="openbsd" or OS=="solaris" or OS=="android" \
...@@ -141,7 +140,7 @@ ...@@ -141,7 +140,7 @@
}, },
], ],
'conditions': [ 'conditions': [
['test_isolation_mode != "noop" and v8_toolset_for_d8 == "target"', { ['test_isolation_mode != "noop"', {
'targets': [ 'targets': [
{ {
'target_name': 'd8_run', 'target_name': 'd8_run',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment