Make irGen.output_base use full path rather than relative

This commit is contained in:
gingerBill
2018-03-03 10:23:27 +00:00
parent 40542e6e26
commit 63ab8b2418
2 changed files with 12 additions and 1 deletions

View File

@@ -7766,8 +7766,10 @@ bool ir_gen_init(irGen *s, Checker *c) {
s->output_base = substring(s->output_name, 0, pos);
}
}
gbAllocator ha = heap_allocator();
s->output_base = path_to_full_path(ha, s->output_base);
gbString output_file_path = gb_string_make_length(heap_allocator(), s->output_base.text, s->output_base.len);
gbString output_file_path = gb_string_make_length(ha, s->output_base.text, s->output_base.len);
output_file_path = gb_string_appendc(output_file_path, ".ll");
defer (gb_string_free(output_file_path));