Repository navigation
bazel: consume prebuilt wee8 in bzlmod - #47203
Merged
Merged
Conversation
dcillera
requested review from
RyanTheOptimist,
abeyad and
danzh2010
as code owners
September 4, 2026 13:23
dcillera
force-pushed
the
wee8-bzlmod-consume-prebuilt
branch
from
September 4, 2026 13:32
3600dca to
5aa8cca
Compare
Wire Envoy's bzlmod builds to consume the prebuilt V8 wee8 static library, mirroring what the WORKSPACE build already does. - Register wee8_prebuilt_extension in MODULE.bazel so the @wee8_prebuilt_* repos exist under bzlmod (the extension equivalent of the WORKSPACE setup_wee8_prebuilt()). - Regenerate the root/api/docs/mobile lockfiles. Verified via cquery that @proxy-wasm-cpp-host//:v8_lib resolves to @wee8_prebuilt_x86_64//:lib/libwee8.a under bzlmod with no from-source @v8// remaining in the dep path. Signed-off-by: Dario Cillerai <[email protected]> Co-Authored-By: Claude Opus 4.8 <[email protected]>
dcillera
force-pushed
the
wee8-bzlmod-consume-prebuilt
branch
from
September 4, 2026 13:49
5aa8cca to
0ed38d8
Compare
phlax
approved these changes
Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Message
bazel: consume prebuilt wee8 in bzlmod
Additional Description
Wires Envoy's bzlmod builds to consume the prebuilt V8 wee8 static
library (
libwee8.a), mirroring what the WORKSPACE build already does(shipped in #47108). This is the bzlmod counterpart of the WORKSPACE wee8
prebuilt injection.
Changes:
api/.bazelrc) bumped to4fb0f61a75eb72ffb0b7efaccc72dd9efb6a9dce, which carriesproxy-wasm-cpp-host's
//bazel:v8_enginelabel_flag— the bzlmod seamfor redirecting the V8 engine (proxy-wasm-cpp-host: wire v8_lib engine dep to the //bazel:v8_engine flag bazel-registry#61).
MODULE.bazelregisterswee8_prebuilt_extensionso the@wee8_prebuilt_*repos exist under bzlmod (the extension equivalent ofthe WORKSPACE
setup_wee8_prebuilt()).//bazel:wee8_enginein.bazelrc, so bzlmodbuilds select the prebuilt while reusing the existing alias that keeps
gcc/sanitizer builds on the from-source engine.
In WORKSPACE mode the flag already defaults to
@envoy//bazel:wee8_enginevia
bazel/proxy_wasm_cpp_host.patch; the sharedcommon.bazelrcline isnow safe in both modes because
//bazel:v8_engineexists in the registrypatch as well as the WORKSPACE patch.
Risk Level
Low — bzlmod wiring only; WORKSPACE behavior unchanged. gcc/sanitizer builds
continue to build V8 from source via the
wee8_enginealias fallback.Testing
bazel cquery --enable_bzlmod --noenable_workspace 'deps(@proxy-wasm-cpp-host//:v8_lib)'resolves to
@wee8_prebuilt_x86_64//:lib/libwee8.awith no from-source@v8//remaining in the dep path. Lockfiles regenerated viabazel mod ... deps --lockfile_mode=update(perci/do_ci.sh lockfiles).Docs Changes
N/A
Release Notes
N/A
Platform Specific Features
N/A