Skip to content

wasm/v8: Use prebuilt wee8 library from envoy_toolshed - #46785

Open
dcillera wants to merge 1 commit into
envoyproxy:mainfrom
dcillera:manage-wee8-library
Open

wasm/v8: Use prebuilt wee8 library from envoy_toolshed#46785
dcillera wants to merge 1 commit into
envoyproxy:mainfrom
dcillera:manage-wee8-library

Conversation

@dcillera

Copy link
Copy Markdown

Use prebuilt wee8 static libraries from envoy_toolshed instead of building V8 from source, reducing build time from 30-120 minutes to seconds.

Changes:

  • bazel/repositories_extra.bzl: Add setup_wee8_prebuilt() call to load prebuilt wee8 libraries (@wee8_prebuilt_x86_64, @wee8_prebuilt_aarch64)
  • source/extensions/wasm_runtime/v8/BUILD: Use @envoy_toolshed//v8:wee8 instead of @proxy_wasm_cpp_host//:v8_lib
  • test/tools/wee8_compile/BUILD: Same change for test tool

The @envoy_toolshed//v8:wee8 target provides platform-agnostic selection:

  • Linux x86_64 + Clang: uses prebuilt libcxx variant
  • Linux x86_64 + GCC: uses prebuilt libstdc++ variant
  • Linux aarch64: uses prebuilt libcxx variant
  • Other platforms: falls back to building from @v8 source

Prebuilt libraries are published at:
https://github.com/envoyproxy/toolshed/releases/tag/bins-v0.2.8

Requires: envoy_toolshed >= 0.4.6

Use prebuilt wee8 static libraries from envoy_toolshed instead of building
V8 from source, reducing build time from 30-120 minutes to seconds.

Changes:
- bazel/repositories_extra.bzl: Add setup_wee8_prebuilt() call to load
  prebuilt wee8 libraries (@wee8_prebuilt_x86_64, @wee8_prebuilt_aarch64)
- source/extensions/wasm_runtime/v8/BUILD: Use @envoy_toolshed//v8:wee8
  instead of @proxy_wasm_cpp_host//:v8_lib
- test/tools/wee8_compile/BUILD: Same change for test tool

The @envoy_toolshed//v8:wee8 target provides platform-agnostic selection:
- Linux x86_64 + Clang: uses prebuilt libcxx variant
- Linux x86_64 + GCC: uses prebuilt libstdc++ variant
- Linux aarch64: uses prebuilt libcxx variant
- Other platforms: falls back to building from @v8 source

Prebuilt libraries are published at:
https://github.com/envoyproxy/toolshed/releases/tag/bins-v0.2.8

Requires: envoy_toolshed >= 0.4.6

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@dcillera
dcillera requested a review from kyessenov as a code owner August 18, 2026 13:47
@dcillera
dcillera requested a deployment to external-contributors August 18, 2026 13:47 — with GitHub Actions Waiting
@repokitteh-read-only repokitteh-read-only Bot added the deps Approval required for changes to Envoy's external dependencies label Aug 18, 2026
@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to (bazel/.*repos.*\.bzl)|(bazel/dependency_imports\.bzl)|(api/bazel/.*\.bzl)|(.*/requirements\.txt)|(.*\.patch).
envoyproxy/dependency-shepherds assignee is @jwendell

🐱

Caused by: #46785 was opened by dcillera.

see: more, trace.

@phlax phlax self-assigned this Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deps Approval required for changes to Envoy's external dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants