Some ideas. (1) If your
$PATH
contained a directory full of symlinks named wasi-sdk.something
, including wasi-sdk.clang
pointing to the right clang
, then wasi-sdk.clang
would work, I guess. (2) use
may be a shell function that rebuilds $PATH
, so a directory with the right clang
appears first.