Commit a4b41fd3 authored by Yang Guo's avatar Yang Guo Committed by Commit Bot

Fix build when ICU is not available.

Change-Id: Iabb9e75b62f13a3bd08114941880c1d4a7f74d8c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1687278
Commit-Queue: Yang Guo <yangguo@chromium.org>
Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62613}
parent 6b2b60cb
...@@ -3879,48 +3879,51 @@ v8_executable("torque-language-server") { ...@@ -3879,48 +3879,51 @@ v8_executable("torque-language-server") {
} }
} }
if (current_toolchain == v8_generator_toolchain) { if (v8_enable_i18n_support) {
v8_executable("gen-regexp-special-case") { if (current_toolchain == v8_generator_toolchain) {
visibility = [ ":*" ] # Only targets in this file can depend on this. v8_executable("gen-regexp-special-case") {
visibility = [ ":*" ] # Only targets in this file can depend on this.
sources = [ sources = [
"src/regexp/gen-regexp-special-case.cc", "src/regexp/gen-regexp-special-case.cc",
] ]
deps = [ deps = [
":v8_libbase", ":v8_libbase",
"//build/win:default_exe_manifest", "//build/win:default_exe_manifest",
"//third_party/icu", "//third_party/icu",
] ]
configs = [ ":internal_config" ] configs = [ ":internal_config" ]
}
} }
}
action("run_gen-regexp-special-case") { action("run_gen-regexp-special-case") {
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
script = "tools/run.py" script = "tools/run.py"
sources = v8_extra_library_files sources = v8_extra_library_files
deps = [ deps = [
":gen-regexp-special-case($v8_generator_toolchain)", ":gen-regexp-special-case($v8_generator_toolchain)",
] ]
output_file = "$target_gen_dir/src/regexp/special-case.cc" output_file = "$target_gen_dir/src/regexp/special-case.cc"
outputs = [ outputs = [
output_file, output_file,
] ]
args = [ args = [
"./" + rebase_path( "./" + rebase_path(
get_label_info(":gen-regexp-special-case($v8_generator_toolchain)", get_label_info(
"root_out_dir") + "/gen-regexp-special-case", ":gen-regexp-special-case($v8_generator_toolchain)",
root_build_dir), "root_out_dir") + "/gen-regexp-special-case",
rebase_path(output_file, root_build_dir), root_build_dir),
] rebase_path(output_file, root_build_dir),
]
}
} }
############################################################################### ###############################################################################
......
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