-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqrt is provided for wasi but not wasm32-unknown-unknown #308
Comments
This crate only is here to supply what LLVM generates references to, and LLVM doesn't generate references to a The |
Ensuring full compiler-builtins support was listed as a general step in the tracking issue shown above towards the process of adding floating point functions into core. rust-lang/rust#50145 (comment) for the exact comment. Are you saying that, at least for this particular intrinsic, the compiler-builtins step can be considered "complete" and we could move on to the next step? |
@Lokathor as @alexcrichton mentions, we don't need to add anything here to add support of the |
Okay, cool. I will proceed in the main tracking issue then. |
Right now the list of no_mangle symbols for
wasm32-unknown-unknown
doesn't includesqrt
. However, thewasi
target does exposesqrt
. Since a properly compiledsqrt
onwasm32
of any type compiles down to a single wasm instruction, I'm not sure whysqrt
is exposed forwasi
and not forwasm32-unknown-unknown
.This same question applies to any other libm function that's part of wasi but not parts of wasm32-unknown-unknown, though there's so many libm functions i'm not sure of the full list at this time.
The text was updated successfully, but these errors were encountered: