-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[libc] Add printf error handling (with fixes) #166382
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
[libc] Add printf error handling (with fixes) #166382
Conversation
506b66b to
2fb05b9
Compare
2fb05b9 to
1ee246f
Compare
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, I'm going to run some tests locally before merging
| endif() | ||
|
|
||
| set(target_error_mapper libc.src.stdio.printf_core.${LIBC_TARGET_OS}.error_mapper) | ||
| if(NOT TARGET ${target_error_converter}) |
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.
this needs to be fixed. Was preventing the tests from running.
| if(NOT TARGET ${target_error_converter}) | |
| if(NOT TARGET ${target_error_mapper}) |
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.
Good catch! Actually there was an issue with a test that didn't run, had to change %n in the nullptr check test case for fprintf, as I was trying to test write_int_converter.h#L29, not the string conversion. Added a guard for LIBC_COPT_PRINTF_DISABLE_WRITE_INT
|
Tests seem clean, merging now and I'll keep an eye on the buildbots. |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/16688 Here is the relevant piece of the build log for the reference |
The patch llvm#166382 fixed most of these, but missed the fprintf_test ones.
The patch #166382 fixed most of these, but missed the fprintf_test ones.
#159474
Resubmitting #162876 with fixes as it broke some buildbots: