Remove vestigial HAVE_LARGE_SNPRINTF_SUPPORT checks#103106
Conversation
| @@ -220,18 +220,6 @@ int main(void) | |||
| check_cxx_source_runs(" | |||
There was a problem hiding this comment.
SSCANF_SUPPORT_ll can be deleted too.
There was a problem hiding this comment.
I see a possible reference to it here:
https://github.com/dotnet/diagnostics/blob/cc5eca29afa2d9cacf6700ddc8d843082b5955c6/src/shared/pal/src/cruntime/printf.cpp#L36-L40
Not sure whether line 37 or 39 should be preserved. Can you advise?
There was a problem hiding this comment.
You link is for the PAL clone in dotnet/diagnostic repo. It may be still needed there.
The printf.cpp file does not exist in dotnet/runtime repo. We have been actively working on eliminating the PAL in dotnet/runtime repo. Many files that still exist in other PAL clones have been deleted in dotnet/runtime.
There was a problem hiding this comment.
You link is for the PAL clone in dotnet/diagnostic repo. It may be still needed there. ... Many files that still exist in other PAL clones have been deleted in dotnet/runtime.
Right. I was concerned that if I deleted that clause from the runtime repo's cmake file, it would automatically be synced to the diagnostics repo's cmake file, potentially causing errors in that repo.
Are you saying that I don't need to worry about this? It's safe for me to delete the clause from the runtime repo's cmake file, and it won't negatively impact the diagnostics repo?
There was a problem hiding this comment.
It is safe to delete the clause from the runtime repo.
The PAL sync into diagnostic repo is done manually once in a blue moon. The next one will have to deal with printf.cpp deletion where SSCANF_SUPPORT_ll was used.
|
I guess CI went green overnight then? :) |
|
Yes. The one failing let is a known issue. |
This also silences a few CodeQL violations, since the tool thought this was shipping code. May as well delete unused code rather than add suppressions.