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: Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/master@{#62613}
This commit is contained in:
parent
6b2b60cb02
commit
a4b41fd339
73
BUILD.gn
73
BUILD.gn
@ -3879,50 +3879,53 @@ v8_executable("torque-language-server") {
|
||||
}
|
||||
}
|
||||
|
||||
if (current_toolchain == v8_generator_toolchain) {
|
||||
v8_executable("gen-regexp-special-case") {
|
||||
if (v8_enable_i18n_support) {
|
||||
if (current_toolchain == v8_generator_toolchain) {
|
||||
v8_executable("gen-regexp-special-case") {
|
||||
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
||||
|
||||
sources = [
|
||||
"src/regexp/gen-regexp-special-case.cc",
|
||||
]
|
||||
|
||||
deps = [
|
||||
":v8_libbase",
|
||||
"//build/win:default_exe_manifest",
|
||||
"//third_party/icu",
|
||||
]
|
||||
|
||||
configs = [ ":internal_config" ]
|
||||
}
|
||||
}
|
||||
|
||||
action("run_gen-regexp-special-case") {
|
||||
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
||||
|
||||
sources = [
|
||||
"src/regexp/gen-regexp-special-case.cc",
|
||||
]
|
||||
script = "tools/run.py"
|
||||
|
||||
sources = v8_extra_library_files
|
||||
|
||||
deps = [
|
||||
":v8_libbase",
|
||||
"//build/win:default_exe_manifest",
|
||||
"//third_party/icu",
|
||||
":gen-regexp-special-case($v8_generator_toolchain)",
|
||||
]
|
||||
|
||||
configs = [ ":internal_config" ]
|
||||
output_file = "$target_gen_dir/src/regexp/special-case.cc"
|
||||
|
||||
outputs = [
|
||||
output_file,
|
||||
]
|
||||
|
||||
args = [
|
||||
"./" + rebase_path(
|
||||
get_label_info(
|
||||
":gen-regexp-special-case($v8_generator_toolchain)",
|
||||
"root_out_dir") + "/gen-regexp-special-case",
|
||||
root_build_dir),
|
||||
rebase_path(output_file, root_build_dir),
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
action("run_gen-regexp-special-case") {
|
||||
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
||||
|
||||
script = "tools/run.py"
|
||||
|
||||
sources = v8_extra_library_files
|
||||
|
||||
deps = [
|
||||
":gen-regexp-special-case($v8_generator_toolchain)",
|
||||
]
|
||||
|
||||
output_file = "$target_gen_dir/src/regexp/special-case.cc"
|
||||
|
||||
outputs = [
|
||||
output_file,
|
||||
]
|
||||
|
||||
args = [
|
||||
"./" + rebase_path(
|
||||
get_label_info(":gen-regexp-special-case($v8_generator_toolchain)",
|
||||
"root_out_dir") + "/gen-regexp-special-case",
|
||||
root_build_dir),
|
||||
rebase_path(output_file, root_build_dir),
|
||||
]
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
# Public targets
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user