Skip to content

lz4 ported to the zig build system

License

Notifications You must be signed in to change notification settings

allyourcodebase/lz4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI

lz4

This is lz4, packaged for Zig.

Installation

First, update your build.zig.zon:

# Initialize a `zig build` project if you haven't already
zig init
zig fetch --save git+https://github.com/allyourcodebase/lz4.git#1.10.0-5

You can then import lz4 in your build.zig with:

const lz4_dependency = b.dependency("lz4", .{
    .target = target,
    .optimize = optimize,
});
your_exe.linkLibrary(lz4_dependency.artifact("lz4"));