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

Remove ZIMD #31

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,6 @@ pub fn build(b: *std.Build) void {
const filter_test = b.option([]const u8, "filter-tests", "Filter tests by name");
const test_step = b.step("test", "Run library tests");

// zimd
const zimd = b.addModule("zimd", CreateOptions{
.root_source_file = .{ .path = "zig/zimd/zimd.zig" },
.target = target,
.optimize = optimize,
.omit_frame_pointer = false,
.error_tracing = true,
.unwind_tables = true,
.strip = false,
});

// test zimd
const zimd_test = b.addTest(TestOptions{
.root_source_file = .{ .path = "zig/zimd/zimd.zig" },
.target = target,
.optimize = optimize,
.filter = filter_test,
.omit_frame_pointer = false,
.error_tracing = true,
.unwind_tables = true,
.strip = false,
});
zimd_test.root_module.addImport("zimd", zimd);
const zimd_test_run = b.addRunArtifact(zimd_test);
test_step.dependOn(&zimd_test_run.step);

// C ABI types
const c_abi_options = CreateOptions{
.root_source_file = .{ .path = "zig/c-abi/types.zig" },
Expand Down Expand Up @@ -68,7 +42,6 @@ pub fn build(b: *std.Build) void {
.strip = false,
});
codecz.addImport("abi", c_abi_types);
codecz.addImport("zimd", zimd);

// test codecs
const codecz_test = b.addTest(TestOptions{
Expand All @@ -84,7 +57,6 @@ pub fn build(b: *std.Build) void {
});
codecz_test.root_module.addImport("codecz", codecz);
codecz_test.root_module.addImport("abi", c_abi_types);
codecz_test.root_module.addImport("zimd", zimd);
codecz_test.addIncludePath(.{ .path = "zig/c-abi/include" });
const codecz_test_run = b.addRunArtifact(codecz_test);
test_step.dependOn(&codecz_test_run.step);
Expand All @@ -105,7 +77,6 @@ pub fn build(b: *std.Build) void {
});
lib_step.root_module.addImport("codecz", codecz);
lib_step.root_module.addImport("abi", c_abi_types);
lib_step.root_module.addImport("zimd", zimd);
lib_step.addIncludePath(.{ .path = "zig/c-abi/include" });
lib_step.root_module.c_std = std.Build.CStd.C11;
lib_step.bundle_compiler_rt = true;
Expand Down
61 changes: 0 additions & 61 deletions zig/zimd/tblz.zig

This file was deleted.

6 changes: 0 additions & 6 deletions zig/zimd/zimd.zig

This file was deleted.