Skip to content

Commit

Permalink
port umm_malloc as new allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
bhansconnect committed Jul 20, 2024
1 parent c8d53c7 commit f57c01d
Show file tree
Hide file tree
Showing 3 changed files with 738 additions and 87 deletions.
12 changes: 12 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@ pub fn build(b: *std.Build) !void {
lib.max_memory = 65536;
lib.stack_size = 14752;

// Tests
const allocator_tests = b.addTest(.{
.name = "allocator_test",
.root_source_file = .{ .path = "platform/allocator.zig" },
.optimize = optimize,
});
allocator_tests.addOptions("config", options);

const run_allocator_tests = b.addRunArtifact(allocator_tests);
const run_test = b.step("test", "run zig tests");
run_test.dependOn(&run_allocator_tests.step);

// Export WASM-4 symbols
lib.export_symbol_names = &[_][]const u8{ "start", "update" };

Expand Down
Loading

0 comments on commit f57c01d

Please sign in to comment.