Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PoC: Add support for system xxHash #1492

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

kou
Copy link
Contributor

@kou kou commented Aug 16, 2024

In general, packaging systems such as .deb want to use packaged dependencies instead of bundled dependencies. LZ4 bundles xxHash but system xxHash is preferred.

Changes:

  • Move lib/xxhash.[ch] to lib/xxhash/xxhash.[ch] and use #include "xxhash/xxhash.h" instead of #include "xxhash.h" to distinct bundled xxHash and system xxHash
  • Add LZ4_USE_SYSTEM_XXHASH macro to use system xxHash
  • Use #include "..." instead of -I... to use our header files
  • Only CMake build supports system xxHash by -DLZ4_USE_SYSTEM_XXHASH for now

@kou
Copy link
Contributor Author

kou commented Aug 16, 2024

What do you think about this proposal?
This is not completed yet but is there a chance that this proposal is accepted?

@kou kou force-pushed the cmake-system-xxhash branch 4 times, most recently from c680d8f to d1ee9eb Compare August 16, 2024 08:11
In general, packaging systems such as .deb want to use packaged
dependencies instead of bundled dependencies. LZ4 bundles xxHash but
system xxHash is preferred.

Changes:

* Move `lib/xxhash.[ch]` to `lib/xxhash/xxhash.[ch]` and
  use `#include "xxhash/xxhash.h"` instead of `#include "xxhash.h"` to
  distinct bundled xxHash and system xxHash
* Add `LZ4_USE_SYSTEM_XXHASH` macro to use system xxHash
* Use `#include "..."` instead of `-I...` to use our header files
* Only CMake build supports system xxHash by `-DLZ4_USE_SYSTEM_XXHASH`
  for now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant