Skip to content

Look for libblake3 and link to it when found#2605

Open
CSharperMantle wants to merge 1 commit intofacebook:mainfrom
CSharperMantle:fix-lblake3
Open

Look for libblake3 and link to it when found#2605
CSharperMantle wants to merge 1 commit intofacebook:mainfrom
CSharperMantle:fix-lblake3

Conversation

@CSharperMantle
Copy link
Copy Markdown

Currently, folly decides whether to use libblake3 symbols solely depending on the existence of <blake3.h>:

#if __has_include(<blake3.h>)

... but without any explicit linking directives in the CMake files. Thus, on systems where <blake3.h> exists, consumers of folly would fail to link.

This PR introduces optional linking directives to libblake3.

Fixes #2552.

Currently, folly only checks for the existence of <blake3.h> to decide
whether to use libblake3 or not. Even on systems with <blake3.h>
installed, the appropriate linker flags is still needed to actually link
it.

Fixes: facebook#2552
@meta-cla meta-cla Bot added the CLA Signed label Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error installing homebrewed folly as dependency for Fizz/Wangle/MVFST

1 participant