1
0
Fork
You've already forked lz4-builder
0
This repository just bundles Lz4 into a Git project. It provides a bang file to cross compile lz4 for Linux, MacOS and Windows.
  • C 99.3%
  • Lua 0.7%
Find a file
Christophe Delord d32dde4f9e Zig 0.16.0
2026年05月14日 12:13:07 +02:00
lz4-1.10.0 remove unnecessary LZ4 files 2025年01月15日 21:44:51 +01:00
.gitignore Release r1 2024年12月27日 22:24:10 +01:00
build.lua Zig 0.16.0 2026年05月14日 12:13:07 +02:00
build.ninja Zig 0.16.0 2026年05月14日 12:13:07 +02:00
LICENSE Release r1 2024年12月27日 22:24:10 +01:00
README.md migrate to Codeberg 2025年04月05日 16:25:04 +02:00

Lz4 builder

This repository just bundles Lz4 into a Git project. It provides a bang file to cross compile lz4 for Linux, MacOS and Windows.

Usage

$ bang

This generates the Ninja file for your platform (the provided Ninja file was generated for Linux).

$ ninja help
Distribution of lzip binaries for Linux, MacOS and Windows.
This Ninja build file will compile and install lz4 for Linux, MacOS and Windows
Targets:
 help show this help message
 compile Build Lz4 binaries for the host only
 all Build Lz4 archives for Linux, MacOS and Windows
 install install Lz4 in PREFIX or ~/.local
 clean clean generated files

Installation of Lz4

To install Lz4 in ~/.local/bin:

$ ninja install

Or in a custom directory (e.g. /path/bin):

$ PREFIX=/path/ ninja install

Cross compilation of Lz4

You'll need Zig.

$ ninja all

Archives for all supported platforms are created in .build.