Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index 0176108ad81138cf56fae6d0c7499238c94a0b0a..f3d670daf961bc7bb3c21d10fbe194d3e91fb2c0 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -65,6 +65,7 @@ declare_args() { |
v8_random_seed = "314159265" |
v8_toolset_for_d8 = "host" |
+v8_toolset_for_shell = "host" |
if (is_msan) { |
# Running the V8-generated code on an ARM simulator is a powerful hack that |
@@ -2127,6 +2128,38 @@ if ((current_toolchain == host_toolchain && v8_toolset_for_d8 == "host") || |
} |
} |
+if ((current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || |
+ (current_toolchain == snapshot_toolchain && v8_toolset_for_shell == "host") || |
+ (current_toolchain != host_toolchain && v8_toolset_for_shell == "target")) { |
+ executable("shell") { |
+ sources = [ |
+ "samples/shell.cc", |
+ ] |
+ |
+ configs -= [ "//build/config/compiler:chromium_code" ] |
+ configs += [ "//build/config/compiler:no_chromium_code" ] |
+ configs += [ |
+ # 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 |
+ # you can't have both applied to the same target. |
+ ":internal_config_base", |
+ ":features", |
+ ":toolchain", |
+ ] |
+ |
+ deps = [ |
+ ":v8", |
+ ":v8_libplatform", |
+ "//build/config/sanitizers:deps", |
+ "//build/win:default_exe_manifest", |
+ ] |
+ |
+ if (v8_enable_i18n_support) { |
+ deps += [ "//third_party/icu" ] |
+ } |
+ } |
+} |
+ |
source_set("json_fuzzer") { |
sources = [ |
"test/fuzzer/json.cc", |