mirror of
https://github.com/ziglang/zig.git
synced 2025-02-12 15:40:22 +00:00
stage1: resolve builtin.zig path when bootstrapping
This commit is contained in:
parent
61c54b2d49
commit
b9f61d4015
@ -1,4 +1,3 @@
|
||||
* resolve builtin.zig not working on windows & macos; try os_path_real
|
||||
* build & link against libcxx and libcxxabi
|
||||
* `zig test`
|
||||
* `zig build`
|
||||
|
@ -8861,6 +8861,9 @@ static Error define_builtin_compile_vars(CodeGen *g) {
|
||||
g->builtin_zig_path = buf_alloc();
|
||||
os_path_join(g->output_dir, buf_create_from_str(builtin_zig_basename), g->builtin_zig_path);
|
||||
|
||||
Buf *resolve_paths[] = { g->builtin_zig_path, };
|
||||
*g->builtin_zig_path = os_path_resolve(resolve_paths, 1);
|
||||
|
||||
contents = codegen_generate_builtin_source(g);
|
||||
if ((err = os_write_file(g->builtin_zig_path, contents))) {
|
||||
fprintf(stderr, "Unable to write file '%s': %s\n", buf_ptr(g->builtin_zig_path), err_str(err));
|
||||
|
Loading…
Reference in New Issue
Block a user