builder: add strlen to wasm builtins

LLVM 22 can replace string-scanning loops with calls to strlen during
optimization. Add the implementation to wasmbuiltins and invalidate
cached archives.

Add an optimized wasm-unknown smoke test that exercises the reflect
name-decoding path which exposed the missing symbol.
This commit is contained in:
Jake Bailey
2026-08-29 23:45:30 -07:00
committed by Ron Evans
parent 61c315cbfb
commit fc0673430d
4 changed files with 24 additions and 7 deletions
+3 -2
View File
@@ -23,8 +23,9 @@ import (
// builder.Library struct but that's hard to do since we want to know the
// library path in advance in several places).
var libVersions = map[string]int{
"musl": 3,
"bdwgc": 2,
"musl": 3,
"bdwgc": 2,
"wasmbuiltins": 1,
}
// Config keeps all configuration affecting the build in a single struct.