Remove compiler ctx allocator

This commit is contained in:
2025-09-11 11:23:07 +02:00
parent 79ec6cc42f
commit 78e6d6146e
5 changed files with 18 additions and 29 deletions

View File

@@ -237,7 +237,7 @@ run_compile_test :: (path : string, output_type : Output_Type = 0) -> Result, Co
}
}
result.info_text = builder_to_string(*sb,, ctx.allocator);
result.info_text = builder_to_string(*sb);
}
if output_type & .StdOut {
@@ -369,8 +369,7 @@ make_test_case :: (path : string, stage_flags : Stage_Flags, allocator := contex
run_test_new :: (file_path : string, stage_flags : Stage_Flags, results : *[..]Result, output_type : Output_Type = 0) {
ctx : Compiler_Context;
ctx.allocator = make_arena(Megabytes(128));
ctx.file = make_file(*ctx, file_path,, ctx.allocator);
ctx.file = make_file(*ctx, file_path);
result : Result;
if stage_flags & .Lexer {