| ... | @@ -8861,6 +8861,9 @@ static Error define_builtin_compile_vars(CodeGen *g) { | ... | @@ -8861,6 +8861,9 @@ static Error define_builtin_compile_vars(CodeGen *g) { |
| 8861 | g->builtin_zig_path = buf_alloc(); | 8861 | g->builtin_zig_path = buf_alloc(); |
| 8862 | os_path_join(g->output_dir, buf_create_from_str(builtin_zig_basename), g->builtin_zig_path); | 8862 | os_path_join(g->output_dir, buf_create_from_str(builtin_zig_basename), g->builtin_zig_path); |
| 8863 | | 8863 | |
| | 8864 | Buf *resolve_paths[] = { g->builtin_zig_path, }; |
| | 8865 | *g->builtin_zig_path = os_path_resolve(resolve_paths, 1); |
| | 8866 | |
| 8864 | contents = codegen_generate_builtin_source(g); | 8867 | contents = codegen_generate_builtin_source(g); |
| 8865 | if ((err = os_write_file(g->builtin_zig_path, contents))) { | 8868 | if ((err = os_write_file(g->builtin_zig_path, contents))) { |
| 8866 | fprintf(stderr, "Unable to write file '%s': %s\n", buf_ptr(g->builtin_zig_path), err_str(err)); | 8869 | fprintf(stderr, "Unable to write file '%s': %s\n", buf_ptr(g->builtin_zig_path), err_str(err)); |