This is an archive of the discontinued LLVM Phabricator instance.

[libc] Include (v)s(n)printf in baremetal configs
ClosedPublic

Authored by phosek on Aug 28 2023, 10:51 PM.

Details

Summary

These are commonly used on baremetal targets. We disable float
support and other features to reduce the binary size. This would
ideally eventually be handled using the proposed config mechanism:
https://discourse.llvm.org/t/rfc-systematic-way-to-introduce-and-use-libc-config-options/72943
but for now we use a CMake conditional.

Diff Detail

Event Timeline

phosek created this revision.Aug 28 2023, 10:51 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 28 2023, 10:51 PM
phosek requested review of this revision.Aug 28 2023, 10:51 PM
sivachandra accepted this revision.Aug 29 2023, 12:02 AM

I am working on cleaning this up using the proposal here: https://discourse.llvm.org/t/rfc-systematic-way-to-introduce-and-use-libc-config-options/72943. But this is OK as it is a few days away to get the implementation to the final shape.

This revision is now accepted and ready to land.Aug 29 2023, 12:02 AM
This revision was automatically updated to reflect the committed changes.