[bazel] Upstream Google3 changes

No-Try: true
Change-Id: I9a7be37f6f1a404fb5c3517b5fdb4008aaaec45a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3295460
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78041}
This commit is contained in:
Victor Gomes 2021-11-22 16:56:46 +01:00 committed by V8 LUCI CQ
parent 84c937b79f
commit ee3c9f2bf2
2 changed files with 16 additions and 0 deletions

View File

@ -359,6 +359,19 @@ v8_config(
# File group rules
# =================================================
filegroup(
name = "public_header_files",
srcs = glob(["include/**/*.h"]),
)
filegroup(
name = "public_wasm_c_api_header_files",
srcs = [
"third_party/wasm-api/wasm.h",
"third_party/wasm-api/wasm.hh",
],
)
filegroup(
name = "v8_config_headers_files",
srcs = [

View File

@ -206,6 +206,7 @@ def v8_library(
copts = copts + default.copts,
linkopts = linkopts + default.linkopts,
alwayslink = 1,
linkstatic = 1,
**kwargs
)
# Alias target used because of cc_library bug in bazel on windows
@ -223,6 +224,7 @@ def v8_library(
copts = copts + default.copts + ENABLE_I18N_SUPPORT_DEFINES,
linkopts = linkopts + default.linkopts,
alwayslink = 1,
linkstatic = 1,
**kwargs
)
# Alias target used because of cc_library bug in bazel on windows
@ -241,6 +243,7 @@ def v8_library(
copts = copts + default.copts,
linkopts = linkopts + default.linkopts,
alwayslink = 1,
linkstatic = 1,
**kwargs
)