Skip to content

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
@kou kou force-pushed the cmake-system-xxhash branch from d1ee9eb to b9154b8 Compare August 16, 2024 08:27
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