This is an archive of the discontinued LLVM Phabricator instance.

Make BLAKE3 a component library
ClosedPublic

Authored by thakis on Mar 24 2022, 12:42 PM.

Details

Summary

It's unusual that BLAKE3/CMakeLists.txt just defines a list of
files that it injects into its parent scope. The list should either
be defined in llvm/lib/Support/CMakeLists.txt, or
llvm/lib/Support/BLAKE3/CMakeLists.txt should define an object
library.

This does the latter. It makes llvm/lib/Support/BLAKE3/CMakeLists.txt
more self-contained.

No behavior change.

Diff Detail

Event Timeline

thakis created this revision.Mar 24 2022, 12:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2022, 12:42 PM
thakis requested review of this revision.Mar 24 2022, 12:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2022, 12:42 PM
MaskRay added inline comments.
llvm/lib/Support/BLAKE3/CMakeLists.txt
53

Should this be named LLVMSupportBlake3 to match the prevailing library naming convention and BUILD.gn?

thakis updated this revision to Diff 418028.Mar 24 2022, 1:06 PM

comments

llvm/lib/Support/BLAKE3/CMakeLists.txt
53

I can change it (done), but since it's an object library it doesn't really make it to disk (other than the name of the directory containing the .o files). So it doesn't matter too much either way I think.

MaskRay accepted this revision.Mar 24 2022, 1:10 PM
This revision is now accepted and ready to land.Mar 24 2022, 1:10 PM
akyrtzi accepted this revision.Mar 24 2022, 1:14 PM

Thank you! 🙇🏻‍♂️

This revision was landed with ongoing or failed builds.Mar 24 2022, 6:17 PM
This revision was automatically updated to reflect the committed changes.