Repository navigation
Conversation
leonm1
requested review from
PiotrSikora,
martijneken and
mpwarres
as code owners
November 20, 2026 21:13
leonm1
force-pushed
the
remove_wasmtime_symbol_prefixing
branch
from
November 20, 2026 21:13
08ddcb3 to
21d4363
Compare
…tic-llvm Newer host glibc headers (C23 const-preserving generic macros in <string.h>, such as strchr/memchr) return const-qualified pointers when given const inputs, triggering -Wincompatible-pointer-types-discards-qualifiers (promoted to an error by -Werror) when compiling C dependencies like @boringssl//:crypto under --config=hermetic-llvm. TAG=agy Signed-off-by: Matt Leon <mattleon@google.com>
…cc_library
Partially link wasmtime using symbol localization via
privately_linked_cc_library bazel macro. Permits multiple runtimes to be
compiled into the same binary without symbol renaming.
Wasmtime exposes wasm_c_api headers and symbols that collide with other
wasm_c_api runtimes (such as V8/wee8) when multiple engines are linked
into the same binary (--define engine=multi). Previously, we patched
Wasmtime's headers and rewrote its compiled library to redefine symbols
to wasmtime_wasm_*. Now, we:
- Compile library sources against unpatched private_deps headers with
linkstatic = True.
- Partially links compiled sources and static archives from private_deps
into a single relocatable object file and localizes all symbols
outside public_symbols ("*proxy_wasm*"):
- Wraps wasmtime-c-api-impl directly via rust_static_library in
wasmtime.BUILD instead of patching out the main.rs.
TAG=agy
Signed-off-by: Matt Leon <mattleon@google.com>
leonm1
force-pushed
the
remove_wasmtime_symbol_prefixing
branch
from
November 20, 2026 21:14
21d4363 to
b8fbb96
Compare
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.
Partially link wasmtime using symbol localization via privately_linked_cc_library bazel macro. Permits multiple runtimes to be compiled into the same binary without symbol renaming.
Wasmtime exposes wasm_c_api headers and symbols that collide with other wasm_c_api runtimes (such as V8/wee8) when multiple engines are linked into the same binary (--define engine=multi). Previously, we patched Wasmtime's headers and rewrote its compiled library to redefine symbols to wasmtime_wasm_*. Now, we:
TAG=agy
Signed-off-by: Matt Leon mattleon@google.com