This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Don't exclude llvm-debuginfod if httplib isn't available
ClosedPublic

Authored by phosek on Jul 14 2023, 11:42 AM.

Details

Summary

This will result in a tool that's not usable, but it'll still link
correctly rather than failing with a CMake error. This matches what
we do for other tools that have dependencies such as llvm-mt.

Diff Detail

Event Timeline

phosek created this revision.Jul 14 2023, 11:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 14 2023, 11:42 AM
Herald added a subscriber: ekilmer. · View Herald Transcript
phosek requested review of this revision.Jul 14 2023, 11:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 14 2023, 11:42 AM
haowei accepted this revision.Jul 14 2023, 11:48 AM
This revision is now accepted and ready to land.Jul 14 2023, 11:48 AM

Could we include a similarly descriptive error message in llvm-debuginfod as in llvm-mt as part of this? As is, this will produce a binary with undefined behavior, as it will hit a llvm_unreachable when attempting to use HTTPServer. Seems like HTTPServer is the right place for this; it should probably report_fatal_error instead of llvm_unreachable, and mention the specific library dep.

phosek updated this revision to Diff 540531.Jul 14 2023, 12:16 PM

Could we include a similarly descriptive error message in llvm-debuginfod as in llvm-mt as part of this? As is, this will produce a binary with undefined behavior, as it will hit a llvm_unreachable when attempting to use HTTPServer. Seems like HTTPServer is the right place for this; it should probably report_fatal_error instead of llvm_unreachable, and mention the specific library dep.

Done, this now prints no httplib akin to llvm-mt.

mysterymath accepted this revision.Jul 14 2023, 12:21 PM
This revision was landed with ongoing or failed builds.Jul 14 2023, 12:29 PM
This revision was automatically updated to reflect the committed changes.