Skip to content
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
6 changes: 3 additions & 3 deletions lib/std/compress/flate.zig
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ const fixedBufferStream = std.io.fixedBufferStream;
const print = std.debug.print;
const builtin = @import("builtin");

test "flate" {
_ = @import("flate/deflate.zig");
_ = @import("flate/inflate.zig");
test {
_ = deflate;
_ = inflate;
}

test "flate compress/decompress" {
Expand Down
10 changes: 3 additions & 7 deletions lib/std/compress/flate/deflate.zig
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,7 @@ fn SimpleCompressor(

const builtin = @import("builtin");

test "flate.Deflate tokenization" {
if (builtin.target.cpu.arch == .wasm32) return error.SkipZigTest;

test "tokenization" {
const L = Token.initLiteral;
const M = Token.initMatch;

Expand Down Expand Up @@ -607,9 +605,7 @@ const TestTokenWriter = struct {
pub fn flush(_: *Self) !void {}
};

test "flate deflate file tokenization" {
if (builtin.target.cpu.arch == .wasm32) return error.SkipZigTest;

test "file tokenization" {
const levels = [_]Level{ .level_4, .level_5, .level_6, .level_7, .level_8, .level_9 };
const cases = [_]struct {
data: []const u8, // uncompressed content
Expand Down Expand Up @@ -718,7 +714,7 @@ fn TokenDecoder(comptime WriterType: type) type {
};
}

test "flate.Deflate store simple compressor" {
test "store simple compressor" {
const data = "Hello world!";
const expected = [_]u8{
0x1, // block type 0, final bit set
Expand Down
5 changes: 4 additions & 1 deletion src/link/Wasm.zig
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,10 @@ pub fn createEmpty(
.zcu_object_sub_path = zcu_object_sub_path,
.gc_sections = options.gc_sections orelse (output_mode != .Obj),
.print_gc_sections = options.print_gc_sections,
.stack_size = options.stack_size orelse std.wasm.page_size * 16, // 1MB
.stack_size = options.stack_size orelse switch (target.os.tag) {
.freestanding => 1 * 1024 * 1024, // 1 MiB
else => 16 * 1024 * 1024, // 16 MiB
},
.allow_shlib_undefined = options.allow_shlib_undefined orelse false,
.file = null,
.disable_lld_caching = options.disable_lld_caching,
Expand Down
5 changes: 0 additions & 5 deletions test/tests.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1138,11 +1138,6 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {

for (options.include_paths) |include_path| these_tests.addIncludePath(.{ .path = include_path });

if (target.os.tag == .wasi) {
// WASI's default stack size can be too small for some big tests.
these_tests.stack_size = 2 * 1024 * 1024;
}

const qualified_name = b.fmt("{s}-{s}-{s}-{s}{s}{s}{s}{s}{s}", .{
options.name,
triple_txt,
Expand Down