diff options
author | 2022-02-27 23:20:10 -0800 | |
---|---|---|
committer | 2022-02-27 23:20:10 -0800 | |
commit | 50560e169ca39c0b4ec163cb32897baf7620aa69 (patch) | |
tree | 83eb721bfd4a0318874c1f69d254a4fd9446512b /src/memory_allocator.zig | |
parent | 36c249e9c1fc6e0000d23ae0055eed54a5437c74 (diff) | |
download | bun-50560e169ca39c0b4ec163cb32897baf7620aa69.tar.gz bun-50560e169ca39c0b4ec163cb32897baf7620aa69.tar.zst bun-50560e169ca39c0b4ec163cb32897baf7620aa69.zip |
WASM
Diffstat (limited to 'src/memory_allocator.zig')
-rw-r--r-- | src/memory_allocator.zig | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/memory_allocator.zig b/src/memory_allocator.zig index c7e42ae87..6797661de 100644 --- a/src/memory_allocator.zig +++ b/src/memory_allocator.zig @@ -32,12 +32,6 @@ const c = struct { const Allocator = mem.Allocator; const assert = std.debug.assert; const CAllocator = struct { - comptime { - if (!@import("builtin").link_libc) { - @compileError("C allocator is only available when linking against libc"); - } - } - usingnamespace if (@hasDecl(c, "malloc_size")) struct { pub const supports_malloc_size = true; @@ -161,12 +155,6 @@ const c_allocator_vtable = Allocator.VTable{ // This is a memory allocator which always writes zero instead of undefined const ZAllocator = struct { - comptime { - if (!@import("builtin").link_libc) { - @compileError("C allocator is only available when linking against libc"); - } - } - usingnamespace if (@hasDecl(c, "malloc_size")) struct { pub const supports_malloc_size = true; |