From 649e9113fd85b6f255204f3321b24d6bc932b053 Mon Sep 17 00:00:00 2001 From: Victor Gomes Date: Mon, 20 Sep 2021 15:52:49 +0200 Subject: [PATCH] [bazel] Adds support to abseil No-Try: true Bug: v8:11006 Change-Id: Ie2758849fcb8b19ae34289d3e762094b062f2a5c Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3168644 Reviewed-by: Dan Elphick Commit-Queue: Victor Gomes Cr-Commit-Position: refs/heads/main@{#76938} --- BUILD.bazel | 6 +++++- WORKSPACE | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/BUILD.bazel b/BUILD.bazel index 6d54662b10..41c364a336 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -3003,6 +3003,7 @@ v8_library( ":v8_shared_internal_headers", ":v8_libbase_files", ], + deps = [ "@com_google_absl//absl/types:optional" ], ) v8_library( @@ -3070,7 +3071,10 @@ v8_binary( "src/regexp/special-case.h", "src/regexp/gen-regexp-special-case.cc", ], - deps = [ "@icu" ], + deps = [ + "@icu", + "@com_google_absl//absl/types:optional", + ], ) v8_binary( diff --git a/WORKSPACE b/WORKSPACE index 289902f68d..c91da66e43 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -16,6 +16,11 @@ http_archive( load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() +local_repository( + name = "com_google_absl", + path = "third_party/abseil-cpp", +) + new_local_repository( name = "zlib", path = "third_party/zlib",