This is an archive of the discontinued LLVM Phabricator instance.

[libc] add guard for file pieces of printf
ClosedPublic

Authored by michaelrj on Aug 15 2022, 2:27 PM.

Details

Summary

In the printf_core CMake, the file pieces are defined as object
libraries that depend on the File data structure. If these are added
unconditionally they'll try to evaluate that dependancy even when there
is no File available. This patch adds a guard to prevent that error.

Diff Detail

Event Timeline

michaelrj created this revision.Aug 15 2022, 2:27 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 15 2022, 2:27 PM
michaelrj requested review of this revision.Aug 15 2022, 2:27 PM

I'm fairly sure that this will fix the arm32 bot failures, but I'm waiting for my test to come back before I push it.

sivachandra accepted this revision.Aug 15 2022, 2:32 PM
This revision is now accepted and ready to land.Aug 15 2022, 2:32 PM
michaelrj updated this revision to Diff 452828.Aug 15 2022, 3:43 PM

This new version passes on arm32. There was a minor failure caused by type issues in parser_test.cpp that's also being fixed.

This revision was landed with ongoing or failed builds.Aug 15 2022, 3:43 PM
This revision was automatically updated to reflect the committed changes.