While Tools/wasm/wasi looks for /opt/wasi-sdk by default, that's not the natural directory that tarballs of the WASI SDK extract to. It makes sense to support discovery of the appropriate WASI SDK based on the supported WASI SDK version when it's extracted directly into /opt.
Starting with WASI SDK 23, the tarballs went from containing a directory named wasi-sdk-{WASI_SDK_VERSION}.0 to e.g. wasi-sdk-{WASI_SDK_VERSION}.0-x86_64-linux.
Linked PRs
While
Tools/wasm/wasilooks for/opt/wasi-sdkby default, that's not the natural directory that tarballs of the WASI SDK extract to. It makes sense to support discovery of the appropriate WASI SDK based on the supported WASI SDK version when it's extracted directly into/opt.Starting with WASI SDK 23, the tarballs went from containing a directory named
wasi-sdk-{WASI_SDK_VERSION}.0to e.g.wasi-sdk-{WASI_SDK_VERSION}.0-x86_64-linux.Linked PRs
Tools/wasm/wasidetect WASI SDK installs in/optwhen the release tarball is extracted #137244Tools/wasm/wasidetect WASI SDK installs in/optwhen the release tarball is extracted (GH-137244) #137250