-
Notifications
You must be signed in to change notification settings - Fork 96
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
Enable vsnprintf
on compilers newer than 1.73.0.1
#293
Conversation
This seems to fix the Xtensa part of esp-rs/esp-mbedtls#13 I haven't narrowed down the problem caused by printing I'd like to get it fixed eventually so that I don't have to patch every |
Hmm, do you have access to something I don't? This PR should have no effect right now without the yet-to-be-built compiler 😅 But I'll take a win if you offer one. As to \n, if the problem is now consistent between xtensa and risc-v, maybe we can go through the vsnprintf algo to see what's what. |
Oh, no I don't. I didn't realize it wasn't out yet. I just did a static analysis. |
You can already download builds for Windows MSVC and Linux 64: |
Should also conditionally enable calling |
I guess that might be a private pre-release because I'm getting a page not found error.
I think I can just call syslog unconditionally, it should handle the conditional aspects of this internally. Let me know if I'm missing something. |
URL changed: https://github.com/esp-rs/rust-build/releases/tag/v1.73.0.1 |
I think there must be a reason why there are cfg guards in those other functions - maybe just to log anything if we are not able to use c-variadics or it was crashing when trying to pass the variadics 🤔 t.b.h I don't really remember exactly |
Fixes #16 |
I think I can test this, this is a fair point.
Update: no crash with current PR using supported rustc on esp32s3 |
I've raised the level of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - Thanks!
Thank you for taking care of it. |
A not terribly complex patch to resolve #16. It might be easier to just bump MSRV, but 🤷♂️.
Also closes esp-rs/esp-mbedtls#13