This is an archive of the discontinued LLVM Phabricator instance.

[llvm] [Debuginfod] Add cpp-httplib optional dependency.
ClosedPublic

Authored by noajshu on Nov 4 2021, 3:13 PM.

Details

Summary

Adds optional dependency on cpp-httplib, a lightweight header-only HTTP server.

Diff Detail

Event Timeline

noajshu created this revision.Nov 4 2021, 3:13 PM
noajshu requested review of this revision.Nov 4 2021, 3:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2021, 3:13 PM
noajshu updated this revision to Diff 388805.Nov 21 2021, 11:45 PM

Clean up old cmake comments.

noajshu updated this revision to Diff 389071.Nov 22 2021, 5:11 PM

Add #cmakedefine for LLVM_ENABLE_CPP_HTTPLIB

phosek added inline comments.Nov 22 2021, 10:53 PM
llvm/CMakeLists.txt
386

I'd probably just call it LLVM_ENABLE_HTTPLIB, you already use HTTPLIB elsewhere (for example HAVE_HTTPLIB_HEADER).

llvm/cmake/config-ix.cmake
195–197

Why do we need to check all three?

noajshu updated this revision to Diff 389345.Nov 23 2021, 3:56 PM

Change LLVM_ENABLE_CPP_HTTPLIB -> LLVM_ENABLE_HTTPLIB and remove redundant use of check_cxx_symbol_exists.

noajshu marked 2 inline comments as done.Nov 23 2021, 3:57 PM
noajshu added inline comments.
llvm/cmake/config-ix.cmake
195–197

Good point, the additional checks are redundant. I've removed them.

phosek accepted this revision.Nov 23 2021, 6:57 PM

LGTM

This revision is now accepted and ready to land.Nov 23 2021, 6:57 PM
noajshu updated this revision to Diff 393696.Dec 11 2021, 2:12 PM
noajshu marked an inline comment as done.

Set default of LLVM_ENABLE_HTTPLIB to OFF

noajshu updated this revision to Diff 394650.Dec 15 2021, 1:24 PM

Add back missing include(CheckCXXSymbolExists)

noajshu updated this revision to Diff 400689.Jan 17 2022, 6:43 PM

Rebase against main.

noajshu updated this revision to Diff 406282.Feb 6 2022, 2:16 PM

Re-run pre-merge checks

noajshu retitled this revision from [llvm] [Debuginfo] Add cpp-httplib optional dependency. to [llvm] [Debuginfod] Add cpp-httplib optional dependency..Feb 6 2022, 3:02 PM
noajshu updated this revision to Diff 411710.Feb 27 2022, 4:46 PM

Rebase against main

noajshu updated this revision to Diff 433507.Jun 1 2022, 1:06 PM

Fix whitespace error

Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2022, 1:06 PM
noajshu updated this revision to Diff 438469.Jun 20 2022, 2:03 PM

Rebase against main

noajshu updated this revision to Diff 438493.Jun 20 2022, 4:31 PM

Add back in accidentally deleted httplib package lookup in config-ix.cmake

This revision was landed with ongoing or failed builds.Jul 6 2022, 11:41 AM
This revision was automatically updated to reflect the committed changes.

Notes for next time.

The commit message (summary) should mention that you added LLVM_ENABLE_HTTPLIB.
It is an important build system detail and is convenient for archaeology when someone tries to find which commit introduced LLVM_ENABLE_HTTPLIB.