[bazel] Fix v8_binary_non_pointer_compression.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Change-Id: I33ef12d28d2e76694f971bab56bd7b7b66731709
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3336502
Reviewed-by: Victor Gomes <victorgomes@chromium.org>
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78385}
This commit is contained in:
Piotr Sikora 2021-12-13 15:32:49 -08:00 committed by V8 LUCI CQ
parent 277fdd1de7
commit 54fd89d89f

View File

@ -1,12 +1,12 @@
def _v8_disable_pointer_compression(settings, attr): def _v8_disable_pointer_compression(settings, attr):
return { return {
"//third_party/v8/HEAD:v8_enable_pointer_compression": "False", "//:v8_enable_pointer_compression": "False",
} }
v8_disable_pointer_compression = transition( v8_disable_pointer_compression = transition(
implementation = _v8_disable_pointer_compression, implementation = _v8_disable_pointer_compression,
inputs = [], inputs = [],
outputs = ["//third_party/v8/HEAD:v8_enable_pointer_compression"], outputs = ["//:v8_enable_pointer_compression"],
) )
# The implementation of transition_rule: all this does is copy the # The implementation of transition_rule: all this does is copy the
@ -51,7 +51,7 @@ v8_binary_non_pointer_compression = rule(
# consequences for your build. The whitelist defaults to "everything". # consequences for your build. The whitelist defaults to "everything".
# But you can redefine it more strictly if you feel that's prudent. # But you can redefine it more strictly if you feel that's prudent.
"_allowlist_function_transition": attr.label( "_allowlist_function_transition": attr.label(
default = "//tools/allowlists/function_transition_allowlist", default = "@bazel_tools//tools/allowlists/function_transition_allowlist",
), ),
}, },
# Making this executable means it works with "$ bazel run". # Making this executable means it works with "$ bazel run".