fix: load case data early on startup instead of on demand
This is to avoid an issue with the decompressor causing heap corruption on macos. closes #169
This commit is contained in:
parent
70a33f1ebf
commit
9f2e3bf4b4
4 changed files with 19 additions and 15 deletions
|
@ -293,6 +293,7 @@ pub fn build_exe(
|
|||
.imports = &.{
|
||||
.{ .name = "cbor", .module = cbor_mod },
|
||||
.{ .name = "thespian", .module = thespian_mod },
|
||||
.{ .name = "CaseData", .module = zg_dep.module("CaseData") },
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -476,7 +477,6 @@ pub fn build_exe(
|
|||
.{ .name = "color", .module = color_mod },
|
||||
.{ .name = "diff", .module = diff_mod },
|
||||
.{ .name = "help.md", .module = help_mod },
|
||||
.{ .name = "CaseData", .module = zg_dep.module("CaseData") },
|
||||
.{ .name = "fuzzig", .module = fuzzig_dep.module("fuzzig") },
|
||||
.{ .name = "zeit", .module = zeit_mod },
|
||||
},
|
||||
|
@ -502,6 +502,7 @@ pub fn build_exe(
|
|||
exe.root_module.addImport("flags", flags_dep.module("flags"));
|
||||
exe.root_module.addImport("cbor", cbor_mod);
|
||||
exe.root_module.addImport("config", config_mod);
|
||||
exe.root_module.addImport("Buffer", Buffer_mod);
|
||||
exe.root_module.addImport("tui", tui_mod);
|
||||
exe.root_module.addImport("thespian", thespian_mod);
|
||||
exe.root_module.addImport("log", log_mod);
|
||||
|
@ -543,6 +544,7 @@ pub fn build_exe(
|
|||
check_exe.root_module.addImport("flags", flags_dep.module("flags"));
|
||||
check_exe.root_module.addImport("cbor", cbor_mod);
|
||||
check_exe.root_module.addImport("config", config_mod);
|
||||
check_exe.root_module.addImport("Buffer", Buffer_mod);
|
||||
check_exe.root_module.addImport("tui", tui_mod);
|
||||
check_exe.root_module.addImport("thespian", thespian_mod);
|
||||
check_exe.root_module.addImport("log", log_mod);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue