From 022ada70a69ca6ad52d03855753a202848bfcdf4 Mon Sep 17 00:00:00 2001 From: catbot Date: Mon, 15 Jun 2026 15:14:18 +0000 Subject: [PATCH] feat: feature-detected browser-wasm variants (relaxed-SIMD) + variant-aware runtime MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The browser wasm pipeline hardcoded -msimd128 for every wasm32 target and baked a single wasm URL into index.html, so newer codegen features that aren't yet baseline across engines (relaxed SIMD today; threads, future SIMD revisions later) couldn't be adopted without dropping the browsers that lack them. Add a general, feature-parameterized mechanism owned entirely by Crafter.Build: - Configuration::wasmVariants declares N codegen variants (label, extra -m flags, runtime probes). Build() compiles the baseline plus one outputName.