You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building with the wasm32-unknown-unknown target flags are not getting passed correctly to clang.
cc::Builder::new().flag_if_supported("-Wno-unused-function") ignores the flag but flag("-Wno-unused-function") works.
It looks like is_flag_supported is giving a false negative. I managed to get this error
warning: output: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "clang: error: unable to execute command: Executable \"wasm-ld-14\" doesn't exist!\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\n" }
My machine does not have wasm-ld-14 installed, it has wasm-ld-15. I was not able to work out why the wrong version is used in is_flag_supported but the correct version is used when running try_compile.
The text was updated successfully, but these errors were encountered:
That one had slipped under my radar (Had been pretty busy with $DAYJOB around the time it was submitted). I've merged it, and it should be in the next release.
When building with the
wasm32-unknown-unknown
target flags are not getting passed correctly toclang
.cc::Builder::new().flag_if_supported("-Wno-unused-function")
ignores the flag butflag("-Wno-unused-function")
works.It looks like
is_flag_supported
is giving a false negative. I managed to get this errorMy machine does not have
wasm-ld-14
installed, it haswasm-ld-15
. I was not able to work out why the wrong version is used inis_flag_supported
but the correct version is used when runningtry_compile
.The text was updated successfully, but these errors were encountered: